projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
532cea9
)
DataObjects/I18n.php
author
Edward
<edward@roojs.com>
Thu, 7 Mar 2019 06:49:10 +0000
(14:49 +0800)
committer
Edward
<edward@roojs.com>
Thu, 7 Mar 2019 06:49:10 +0000
(14:49 +0800)
DataObjects/I18n.php
patch
|
blob
|
history
diff --git
a/DataObjects/I18n.php
b/DataObjects/I18n.php
index
58ececb
..
ecf2a37
100644
(file)
--- a/
DataObjects/I18n.php
+++ b/
DataObjects/I18n.php
@@
-172,7
+172,14
@@
class Pman_Core_DataObjects_I18n extends DB_DataObject
");
if(!empty($q['_hide_unused'])) {
- $this->having("no_of_division > 0");
+ $this->whereAdd("(
+ SELECT
+ COUNT(geoip_division.id)
+ FROM
+ geoip_division
+ WHERE
+ geoip_division.country = i18n.lkey
+ ) > 0");
}
}