Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Commit

Permalink
Fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonw4331 committed Jul 19, 2019
1 parent b85f350 commit 780776d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChestShop/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function onSignChange(SignChangeEvent $event)
if (!is_numeric($price) or $price < 0) return;
if ($pID === false) return;
if (($chest = $this->getSideChest($sign)) === false) return;
$shops = $this->databaseManager->selectByCondition(["shopOwner" => $shopOwner]);
$shops = $this->databaseManager->selectByCondition(["shopOwner" => "'$shopOwner'"]);
if(!is_array($shops) or count($shops) + 1 > $this->plugin->getMaxPlayerShops($event->getPlayer())) return;

$productName = ItemFactory::get($pID, $pMeta)->getName();
Expand Down

0 comments on commit 780776d

Please sign in to comment.