mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
Merge pull request #3022 from Deltik/fix-3021
e_pref::update() accepts existing keys with NULL
This commit is contained in:
@@ -240,7 +240,7 @@ class e_pref extends e_front_model
|
|||||||
{
|
{
|
||||||
return $this;
|
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;
|
if($this->_data[$pref_name] != $value) $this->data_has_changed = true;
|
||||||
$this->_data[$pref_name] = $value;
|
$this->_data[$pref_name] = $value;
|
||||||
|
Reference in New Issue
Block a user