Pman/Roo.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 04:29:30 +0000 (12:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 04:29:30 +0000 (12:29 +0800)
Pman/Roo.php

index 3e438e7..b96cfaa 100644 (file)
@@ -856,10 +856,24 @@ class Pman_Roo extends Pman
                         $q_filtered[$key] = $val;
                     }
                     
+                    if (isset($this->cols[$key]) && strpos( $this->cols[$key], '.') !== false) {
+                        $quote = false;
+                        if (!is_numeric($v) || !is_long($v)) {
+                            $quote = true;
+                        }
+                        $x->whereAdd( "$key  = " . ($quote ? "'". $x->escape($v) ."'" : $v));
+                        
+                    }
+                    
+                    
                     continue;
             }
         }
+        
         $x->setFrom($q_filtered);
+        
+        
+        
        
         // nice generic -- let's get rid of it.. where is it used!!!!
         // used by: