- Fixed an error in variable_get(). If a variable was set to 0 it would return the

default value instead.
3-00
natrak 2001-06-15 10:41:18 +00:00
parent 199c65491e
commit abcef73d19
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ function variable_init($conf = array()) {
function variable_get($name, $default, $object = 0) {
global $conf;
return $conf[$name] ? $conf[$name] : $default;
return isset($conf[$name]) ? $conf[$name] : $default;
}
function variable_set($name, $value) {