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

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