- Fixed an error in variable_get(). If a variable was set to 0 it would return the
default value instead.3-00
parent
199c65491e
commit
abcef73d19
|
@ -8,7 +8,7 @@ function variable_init($conf = array()) {
|
||||||
|
|
||||||
function variable_get($name, $default, $object = 0) {
|
function variable_get($name, $default, $object = 0) {
|
||||||
global $conf;
|
global $conf;
|
||||||
return $conf[$name] ? $conf[$name] : $default;
|
return isset($conf[$name]) ? $conf[$name] : $default;
|
||||||
}
|
}
|
||||||
|
|
||||||
function variable_set($name, $value) {
|
function variable_set($name, $value) {
|
||||||
|
|
Loading…
Reference in New Issue