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)
{
foreach ($this as $key => $value) {
$this->$key = $row[$key];
if (!empty($key)) {
$this->$key = $row[$key];
}
}