Notice: Undefined index: present

This commit is contained in:
Igor Barkov (iwork) 2020-07-22 12:55:27 +03:00
parent 9d2f7578b9
commit 2ad7cbec82

View File

@ -7,7 +7,9 @@ class InventoryItem extends Item
public function __construct($row) public function __construct($row)
{ {
parent::__construct($row); parent::__construct($row);
$this->present = $row['present']; if (isset($row['present'])) {
$this->present = $row['present'];
}
} }
public function printInfo() public function printInfo()