diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/entities.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index cb88fb455..156f552f4 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2685,7 +2685,9 @@ $name = sanitise_string($name);
$value = sanitise_string($value);
- return insert_data("INSERT into {$CONFIG->dbprefix}private_settings (entity_guid, name, value) VALUES ($entity_guid, '{$name}', '{$value}') ON DUPLICATE KEY UPDATE value='$value'");
+ $result = insert_data("INSERT into {$CONFIG->dbprefix}private_settings (entity_guid, name, value) VALUES ($entity_guid, '{$name}', '{$value}') ON DUPLICATE KEY UPDATE value='$value'");
+ if ($result === 0) return true;
+ return $result;
}
|