diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 20:02:11 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 20:02:11 +0000 |
commit | 96c27d9cb32636d679694c13d328f7211ec56dfb (patch) | |
tree | 36bff75cd11558b74a3e442b729eb028b2e70dca /engine/lib/configuration.php | |
parent | 3c8180095c81d4eee82ed7088b378161cee29298 (diff) | |
download | elgg-96c27d9cb32636d679694c13d328f7211ec56dfb.tar.gz elgg-96c27d9cb32636d679694c13d328f7211ec56dfb.tar.bz2 |
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
Diffstat (limited to 'engine/lib/configuration.php')
-rw-r--r-- | engine/lib/configuration.php | 3 |
1 files changed, 2 insertions, 1 deletions
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; } /** |