Commit abcef73d authored by natrak's avatar natrak

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

  default value instead.
parent 199c6549
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment