1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-24 16:31:48 +02:00

Merge pull request #3022 from Deltik/fix-3021

e_pref::update() accepts existing keys with NULL
This commit is contained in:
Cameron
2018-02-02 13:42:00 -08:00
committed by GitHub

View File

@@ -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;