From 60fdc48b2b37165c93f62da441a7268c3ffc3c99 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 19 Jun 2014 21:45:02 +0400 Subject: [PATCH] =?UTF-8?q?fix=20-=20property=5Fexists=20=D0=B2=D0=BC?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=BE=20isset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/SqlResultProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/SqlResultProvider.php b/model/SqlResultProvider.php index 9ec9048..631ea86 100644 --- a/model/SqlResultProvider.php +++ b/model/SqlResultProvider.php @@ -45,7 +45,7 @@ class SqlResultProvider implements iSqlResultItems $this->defineResultItems(); $result_items_assoc = array(); foreach ($this->result_items_base as $item) { - if (!isset($item->{$field})) { + if (!property_exists($item, $field)) { throw new ErrorException('Undefined field. ' . $field); } if ($assoc_as_array) {