From 96c27d9cb32636d679694c13d328f7211ec56dfb Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 20:02:11 +0000 Subject: fixed bug where get_config was returning 0 because there is not not auto id on the config table git-svn-id: http://code.elgg.org/elgg/trunk@7752 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/configuration.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 9e1b82880..c79aff2d6 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -379,7 +379,8 @@ function set_config($name, $value, $site_guid = 0) { $query = "insert into {$CONFIG->dbprefix}config" . " set name = '{$name}', value = '{$value}', site_guid = {$site_guid}"; - return insert_data($query); + $result = insert_data($query); + return $result !== false; } /** -- cgit v1.2.3