From: Edward Date: Thu, 28 Mar 2019 05:08:42 +0000 (+0800) Subject: Fix #5773 - Product edit changes X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=8bd666948e00b5a62992fc9ff7a3281183de0e34 Fix #5773 - Product edit changes --- diff --git a/DataObjects/I18n.php b/DataObjects/I18n.php index 9711cb6c..971d0d6e 100644 --- a/DataObjects/I18n.php +++ b/DataObjects/I18n.php @@ -170,20 +170,19 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject geoip_city.country = i18n.lkey ) AS no_of_city "); - - if(!empty($q['_hide_unused'])) { - $this->whereAdd(" - ( - SELECT - COUNT(geoip_division.id) - FROM - geoip_division - WHERE - geoip_division.country = i18n.lkey - ) > 0 - "); - } - + } + + if(!empty($q['_hide_unused'])) { + $this->whereAdd(" + ( + SELECT + COUNT(geoip_division.id) + FROM + geoip_division + WHERE + geoip_division.country = i18n.lkey + ) > 0 + "); } }