fix class

This commit is contained in:
lopar 2019-01-14 23:31:59 +02:00
parent 0393614719
commit 78ba400b90

View File

@ -93,10 +93,12 @@ abstract class Item
public function __construct($row)
{
foreach ($this as $key => $value) {
if (!empty($key)) {
// if (!empty($key)) {
// $this->$key = $row[$key];
// } else $this->$key = null;
if (isset($row[$key])) {
$this->$key = $row[$key];
} else $this->$key = null;
}
}
// ТА ЛААААДНО?!