Browse Source

fix - property_exists вместо isset

namespace
Alexander Demidov 11 years ago
parent
commit
60fdc48b2b
  1. 2
      model/SqlResultProvider.php

2
model/SqlResultProvider.php

@ -45,7 +45,7 @@ class SqlResultProvider implements iSqlResultItems
$this->defineResultItems(); $this->defineResultItems();
$result_items_assoc = array(); $result_items_assoc = array();
foreach ($this->result_items_base as $item) { foreach ($this->result_items_base as $item) {
if (!isset($item->{$field})) {
if (!property_exists($item, $field)) {
throw new ErrorException('Undefined field. ' . $field); throw new ErrorException('Undefined field. ' . $field);
} }
if ($assoc_as_array) { if ($assoc_as_array) {

Loading…
Cancel
Save