From 74228eb5b8d4f136a6ce334b0b651114624b80ab Mon Sep 17 00:00:00 2001 From: Ceri Binding Date: Wed, 9 Jan 2019 11:29:17 +0000 Subject: [PATCH] Potential fix for #122 and #114 Conditional logic changed --- store/ARC2_StoreLoadQueryHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/ARC2_StoreLoadQueryHandler.php b/store/ARC2_StoreLoadQueryHandler.php index 54e2d55..b646b9e 100644 --- a/store/ARC2_StoreLoadQueryHandler.php +++ b/store/ARC2_StoreLoadQueryHandler.php @@ -225,7 +225,7 @@ public function getStoredTermID($val, $type_id, $tbl) } } else { $binaryValue = $this->store->a['db_object']->escape($val); - if (false !== empty($binaryValue)) { + if (false == empty($binaryValue)) { $sql = 'SELECT id AS `id` FROM '.$tbl_prefix.$sub_tbl." WHERE val = BINARY '".$binaryValue."'"; $row = $this->store->a['db_object']->fetchRow($sql); if (is_array($row) && isset($row['id'])) {