fix selling

This commit is contained in:
lopar
2019-01-14 23:54:20 +02:00
parent 40e0da910c
commit fe619c675a
3 changed files with 3 additions and 7 deletions
+1 -4
View File
@@ -85,17 +85,14 @@ abstract class Item
public $onlyone;
public $shshop;
/**
* Item constructor.
*
* @param $row
*/
public function __construct($row)
{
foreach ($this as $key => $value) {
// if (!empty($key)) {
// $this->$key = $row[$key];
// } else $this->$key = null;
if (isset($row[$key])) {
$this->$key = $row[$key];
}
-2
View File
@@ -4,8 +4,6 @@ class ShopItem extends Item
{
public function printInfo()
{
if ($this->printControls()) $this->maxdur = 0;
parent::printBaseInfo();
parent::printRequirements();
parent::printBonuses();