Fix caching when an array is passed to new

pull/2077/head
Isaac Connor 2018-04-15 10:26:57 -04:00
parent bef7098cb4
commit 2860e067bc
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class Storage {
foreach ($row as $k => $v) {
$this->{$k} = $v;
}
$storage_cache[$IdOrRow] = $this;
$storage_cache[$row['Id']] = $this;
} else {
$this->{'Name'} = '';
$this->{'Path'} = '';