it works?!

This commit is contained in:
Igor Barkov [iwork] 2019-01-14 16:06:26 +02:00
parent 19316744ce
commit 6257325206

View File

@ -72,7 +72,9 @@ abstract class Item
public function __construct($row) public function __construct($row)
{ {
foreach ($this as $key=>$value) { foreach ($this as $key=>$value) {
$this->$key = $row[$key]; if (!empty($key)) {
$this->$key = $row[$key];
}
} }
// ТА ЛААААДНО?! // ТА ЛААААДНО?!
// $this->name = $row['name']; // $this->name = $row['name'];