1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

More pref handler fixes

This commit is contained in:
secretr
2012-01-06 11:42:47 +00:00
parent 750df8929f
commit e0bd362378

View File

@@ -199,6 +199,7 @@ class e_pref extends e_front_model
{ {
return $this; return $this;
} }
$this->data_has_changed = (vartrue($this->_data[$pref_name]) != $value);
$this->_data[$pref_name] = $value; $this->_data[$pref_name] = $value;
//BC //BC
@@ -224,7 +225,11 @@ class e_pref extends e_front_model
{ {
return $this; return $this;
} }
if(isset($this->_data[$pref_name])) $this->_data[$pref_name] = $value; if(isset($this->_data[$pref_name]))
{
$this->data_has_changed = ($this->_data[$pref_name] != $value);
$this->_data[$pref_name] = $value;
}
//BC //BC
if($this->alias === 'core') if($this->alias === 'core')
@@ -249,7 +254,11 @@ class e_pref extends e_front_model
{ {
return $this; return $this;
} }
if(!isset($this->_data[$pref_name])) $this->_data[$pref_name] = $value; if(!isset($this->_data[$pref_name]))
{
$this->_data[$pref_name] = $value;
$this->data_has_changed = true;
}
//BC //BC
if($this->alias === 'core') if($this->alias === 'core')