Skip to content

Commit 3c44de6

Browse files
committed
Selection: workaround for "Trying to get property of non-object", thx to @hranicka, partially closes #15
1 parent 1af77e1 commit 3c44de6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Database/Table/Selection.php

+4
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,10 @@ public function offsetSet($key, $value)
971971
public function offsetGet($key)
972972
{
973973
$this->execute();
974+
if ($this->rows === NULL) {
975+
$this->cache = NULL;
976+
return $this->data[$key];
977+
}
974978
return $this->rows[$key];
975979
}
976980

0 commit comments

Comments
 (0)