1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 05:31:58 +02:00

Hope last pref handler issue for today...

This commit is contained in:
secretr 2012-01-06 14:06:45 +00:00
parent e0bd362378
commit 397a75c059

@ -199,7 +199,8 @@ class e_pref extends e_front_model
{
return $this;
}
$this->data_has_changed = (vartrue($this->_data[$pref_name]) != $value);
if(!isset($this->_data[$pref_name]) || $this->_data[$pref_name] != $value) $this->data_has_changed = true;
$this->_data[$pref_name] = $value;
//BC
@ -227,7 +228,7 @@ class e_pref extends e_front_model
}
if(isset($this->_data[$pref_name]))
{
$this->data_has_changed = ($this->_data[$pref_name] != $value);
if($this->_data[$pref_name] != $value) $this->data_has_changed = true;
$this->_data[$pref_name] = $value;
}