summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-11-20 12:54:22 +0100
committerSimon Rettberg2023-11-20 12:54:22 +0100
commite2396253c9d51561a6d24fb71d0db6410f3fa325 (patch)
treefa06f6647be367ffec763fdf53aee44bacf40417
parent[sysconfig] Update Wikipedia extraction logic (diff)
downloadslx-admin-e2396253c9d51561a6d24fb71d0db6410f3fa325.tar.gz
slx-admin-e2396253c9d51561a6d24fb71d0db6410f3fa325.tar.xz
slx-admin-e2396253c9d51561a6d24fb71d0db6410f3fa325.zip
[inc/Property] Fix return type
-rw-r--r--inc/property.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/property.inc.php b/inc/property.inc.php
index dc1e4719..556596f1 100644
--- a/inc/property.inc.php
+++ b/inc/property.inc.php
@@ -135,10 +135,10 @@ class Property
if ($expectedValue !== null) {
$args['oldvalue'] = $expectedValue;
return Database::exec("UPDATE property_list SET `value` = :newvalue, dateline = :dateline
- WHERE `name` = :name AND subkey = :subkey AND `value` = :oldvalue", $args);
+ WHERE `name` = :name AND subkey = :subkey AND `value` = :oldvalue", $args) > 0;
}
return Database::exec("UPDATE property_list SET `value` = :newvalue, dateline = :dateline
- WHERE `name` = :name AND subkey = :subkey", $args);
+ WHERE `name` = :name AND subkey = :subkey", $args) > 0;
}
/**