Fix caching when an array is passed to new
parent
bef7098cb4
commit
2860e067bc
|
@ -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'} = '';
|
||||
|
|
Loading…
Reference in New Issue