]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug where get_config was returning 0 because there is not not auto id on the...
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Dec 2010 20:02:11 +0000 (20:02 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Dec 2010 20:02:11 +0000 (20:02 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7752 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/configuration.php

index 9e1b82880c65af136434b63bf8e6d38055091898..c79aff2d6d5afc2dd25cd56e41f96ec26c2a48e1 100644 (file)
@@ -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;
 }
 
 /**