1
0
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:
Cameron 2017-06-14 12:18:21 -07:00
parent baaa766bc7
commit 5ff66b3f37

View File

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