fix class
This commit is contained in:
parent
0393614719
commit
78ba400b90
@ -93,10 +93,12 @@ abstract class Item
|
||||
public function __construct($row)
|
||||
{
|
||||
foreach ($this as $key => $value) {
|
||||
if (!empty($key)) {
|
||||
// if (!empty($key)) {
|
||||
// $this->$key = $row[$key];
|
||||
// } else $this->$key = null;
|
||||
if (isset($row[$key])) {
|
||||
$this->$key = $row[$key];
|
||||
} else $this->$key = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// ТА ЛААААДНО?!
|
||||
|
Loading…
Reference in New Issue
Block a user