AntonLV 10 lat temu
rodzic
commit
fc06335e8b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      modules/boonex/market/classes/BxMarketDb.php

+ 1 - 1
modules/boonex/market/classes/BxMarketDb.php

@@ -338,7 +338,7 @@ class BxMarketDb extends BxBaseModTextDb
     public function unregisterLicense($iProfileId, $iProductId, $sOrder, $sLicense, $sType)
     {
     	$sQuery = $this->prepare("DELETE FROM `" . $this->_oConfig->CNF['TABLE_LICENSES'] . "` WHERE `profile_id` = ? AND `product_id` = ? AND `order` = ? AND `license` = ?", $iProfileId, $iProductId, $sOrder, $sLicense);
-        return (int)$this->query($sQuery) > 0;
+        return $this->query($sQuery) !== false;
     }
 
     protected function _registerLicense($iProfileId, $iProductId, $iCount, $sOrder, $sLicense, $sType, $sDuration = '')