make class greater
This commit is contained in:
parent
e7f8d99ac2
commit
d969a0e70f
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user