diff --git a/e107_handlers/pref_class.php b/e107_handlers/pref_class.php index 71b1cee00..57549820a 100644 --- a/e107_handlers/pref_class.php +++ b/e107_handlers/pref_class.php @@ -240,7 +240,7 @@ class e_pref extends e_front_model { return $this; } - if(isset($this->_data[$pref_name])) + if(array_key_exists($pref_name, $this->_data)) { if($this->_data[$pref_name] != $value) $this->data_has_changed = true; $this->_data[$pref_name] = $value;