aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Lasocki-Biczysko <j.lasocki-biczysko@intrallect.com>2012-01-27 16:39:47 +0000
committerCash Costello <cash.costello@gmail.com>2012-02-03 07:21:31 -0500
commit8950174d05884af92ba8c75608e4f32234d965b4 (patch)
treec57cd2d1ee1207602bd12e442c55b7add4401794
parent3c1663c182de1744d639134cd121f4aafa2f379e (diff)
downloadelgg-8950174d05884af92ba8c75608e4f32234d965b4.tar.gz
elgg-8950174d05884af92ba8c75608e4f32234d965b4.tar.bz2
response from insert_data needs to be checked for !== FALSE
-rw-r--r--engine/lib/configuration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 7f787331f..d32a5c4b6 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -303,7 +303,7 @@ function datalist_set($name, $value) {
. " set name = '{$sanitised_name}', value = '{$sanitised_value}'"
. " ON DUPLICATE KEY UPDATE value='{$sanitised_value}'");
- if ($success) {
+ if ($success !== FALSE) {
$DATALIST_CACHE[$name] = $value;
return true;
} else {