From: cash Date: Wed, 29 Dec 2010 20:02:11 +0000 (+0000) Subject: fixed bug where get_config was returning 0 because there is not not auto id on the... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=96c27d9cb32636d679694c13d328f7211ec56dfb;p=lorea%2Felgg.git 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 --- 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; } /**