From e8fba75ce272aeabb4f206bf022e5368d1c1ba97 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 11 Nov 2010 12:29:55 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman/Roo.php b/Pman/Roo.php index b96cfaa..ef459d0 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -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)); } -- 2.39.2