mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Issue #2613 - possible fix for empty prefs issue.
This commit is contained in:
parent
baaa766bc7
commit
5ff66b3f37
@ -469,10 +469,10 @@ class e_pref extends e_front_model
|
||||
$id = $this->prefid;
|
||||
$data = $force ? false : $this->getPrefCache(true);
|
||||
|
||||
if($data !== false)
|
||||
if(!empty($data))
|
||||
{
|
||||
$this->pref_cache = e107::getArrayStorage()->WriteArray($data, false); //runtime cache
|
||||
$this->loadData($data, false);
|
||||
$this->loadData((array) $data, false);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user