From 384dc2503b6cd6d9a893f0a2797b6f904efbfc3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Fri, 3 Jan 2025 22:09:37 +0100 Subject: [PATCH] =?UTF-8?q?Supprime=20d=C3=A9tection=20erreur=20objet=20db?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index 9a31272..27d361e 100644 --- a/core/core.php +++ b/core/core.php @@ -547,7 +547,7 @@ class common } // Effacer la donnée $success = $db->delete($query, true); - return is_object($success); + return $success; } /** @@ -584,7 +584,7 @@ class common $query .= '.' . $keys[$i]; } // Appliquer la modification, le dernier élément étant la donnée à sauvegarder - $success = is_object($db->set($query, $keys[count($keys) - 1], $save)); + $success = $db->set($query, $keys[count($keys) - 1], $save); } return $success; }