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

index ab8f65d..001f951 100644 (file)
@@ -858,12 +858,12 @@ class Pman_Roo extends Pman
                         $q_filtered[$key] = $val;
                     }
                     
-                    if (isset($this->cols[$key]) && strpos( $this->cols[$key], '.') !== false) {
+                    if (isset($this->colsJname[$key])) {
                         $quote = false;
                         if (!is_numeric($val) || !is_long($val)) {
                             $quote = true;
                         }
-                        $x->whereAdd( "{$this->cols[$key]} = " . ($quote ? "'". $x->escape($val) ."'" : $val));
+                        $x->whereAdd( "{$this->colsJname[$key]} = " . ($quote ? "'". $x->escape($val) ."'" : $val));
                         
                     }