make class greater

This commit is contained in:
Igor Barkov [iwork] 2019-01-14 16:42:05 +02:00
parent e7f8d99ac2
commit d969a0e70f

View File

@ -92,8 +92,9 @@ abstract class Item
public function __construct($row) public function __construct($row)
{ {
foreach ($this as $key => $value) { foreach ($this as $key => $value) {
if (!empty($key)) {
$this->$key = $row[$key]; $this->$key = $row[$key];
}
} }