X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FGateway%2FRow.php;h=e408430c736293fa3750ce810f31600500db1169;hp=0a2820aa612b5462fd537a214d0c3bff63ef4e83;hb=eb9591d498ac4a2a448d6021c804b3c41d1c7247;hpb=89caabf7e3ebc62190fccba97e3bc11f7f32b58c diff --git a/lib/pq/Gateway/Row.php b/lib/pq/Gateway/Row.php index 0a2820a..e408430 100644 --- a/lib/pq/Gateway/Row.php +++ b/lib/pq/Gateway/Row.php @@ -130,7 +130,7 @@ class Row implements \JsonSerializable */ function __get($p) { if (!isset($this->cell[$p])) { - $this->cell[$p] = new Cell($this, $p, $this->data[$p]); + $this->cell[$p] = new Cell($this, $p, isset($this->data[$p]) ? $this->data[$p] : null); } return $this->cell[$p]; }