fix selling
This commit is contained in:
+1
-4
@@ -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];
|
||||
}
|
||||
|
||||
@@ -4,8 +4,6 @@ class ShopItem extends Item
|
||||
{
|
||||
public function printInfo()
|
||||
{
|
||||
if ($this->printControls()) $this->maxdur = 0;
|
||||
|
||||
parent::printBaseInfo();
|
||||
parent::printRequirements();
|
||||
parent::printBonuses();
|
||||
|
||||
Reference in New Issue
Block a user