make class greater
This commit is contained in:
+3
-2
@@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user