DataObjects/Core_enum.php
authorAlan Knowles <alan@roojs.com>
Mon, 9 Mar 2015 02:29:07 +0000 (10:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 9 Mar 2015 02:29:07 +0000 (10:29 +0800)
DataObjects/Core_enum.php

index 5c685c6..30d9a98 100644 (file)
@@ -59,11 +59,12 @@ class Pman_Core_DataObjects_Core_enum extends DB_DataObject
         }
         
 //        print_r($this);
-        if(!empty($q['id'])){
+        if(!empty($q['id'])){ // this should never be needed?!?!?!?!??
             $this->id = $q['id'];
         }
+        
         if(!empty($q['ids'])){
-            $this->whereAdd("core_enum.id in (" .$q['ids'].")");
+            $this->whereAddIn('core_enum.id', explode(',',  $q['ids']) , 'int');
         }
         
     }