From ce5bb0d2b00798dc4a328b19e9023397f914ce86 Mon Sep 17 00:00:00 2001 From: jasonwynn10 Date: Mon, 15 Jul 2019 22:31:37 -0400 Subject: [PATCH] Fix #9 --- src/ChestShop/EventListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChestShop/EventListener.php b/src/ChestShop/EventListener.php index ac98c60..e311436 100644 --- a/src/ChestShop/EventListener.php +++ b/src/ChestShop/EventListener.php @@ -160,7 +160,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();