X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FI18n.php;h=7cf04c14bca0cbc6b1af02fd42648d9466582e74;hb=3c5bf94b5268992910347f541992ffae2925f38a;hp=618f53d8c4aad62de1ca10022a709871b619102f;hpb=3b8fb72708d6aa8f90048d27bebf4888fe40b697;p=Pman.Core diff --git a/DataObjects/I18n.php b/DataObjects/I18n.php index 618f53d8..7cf04c14 100644 --- a/DataObjects/I18n.php +++ b/DataObjects/I18n.php @@ -138,8 +138,9 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject if (!empty($q['_filtered']) && !empty($this->ltype)) { $cfg = $this->cfg(); $filter = $cfg[$this->ltype]; - $this->whereAddIn('lkey', $filter, 'string'); - + if(is_array($filter)){ + $this->whereAddIn('lkey', $filter, 'string'); + } } } @@ -199,7 +200,7 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject { $ret = array(); $cfg = $this->cfg(); - echo '
';print_r($cfg);
+        //echo '
';print_r($cfg);
         switch ($t) {
             case 'c':
                 require_once 'I18Nv2/Country.php';