diff options
author | natrak <> | 2001-06-15 10:41:18 +0000 |
---|---|---|
committer | natrak <> | 2001-06-15 10:41:18 +0000 |
commit | abcef73d19d8925a076d2bdadede933ed354141d (patch) | |
tree | 226f33327ccfa36cef7dd1254fa38a54c4b3385c /includes/variable.inc | |
parent | 199c65491eea2b34b4ed63c2e81a1a4f9fc6246a (diff) | |
download | brdo-abcef73d19d8925a076d2bdadede933ed354141d.tar.gz brdo-abcef73d19d8925a076d2bdadede933ed354141d.tar.bz2 |
- Fixed an error in variable_get(). If a variable was set to 0 it would return the
default value instead.
Diffstat (limited to 'includes/variable.inc')
-rw-r--r-- | includes/variable.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/variable.inc b/includes/variable.inc index 402d4457b..8277ab803 100644 --- a/includes/variable.inc +++ b/includes/variable.inc @@ -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) { |