From b41f2c12e9703cdbbef638765aaf65ba2c8d291a Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 6 Nov 2012 09:13:55 -0500 Subject: [PATCH] Updated to check if the supposed column names are integers Simplified logic by only checking one variable. Since "1" is a string but also returns true for being an integer, I swapped the is_string out for an !is_int --- classes/Model.php | 2 +- jar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Model.php b/classes/Model.php index 23b3fda..62bbee0 100644 --- a/classes/Model.php +++ b/classes/Model.php @@ -621,7 +621,7 @@ class Model extends Object foreach ($this->conditions as $column => $value) { - if (is_string($column) || is_string($value)) + if (!is_int($column)) { $use_id = false; } diff --git a/jar.php b/jar.php index 5c07085..cf44da9 100755 --- a/jar.php +++ b/jar.php @@ -4686,7 +4686,7 @@ class Model extends Object foreach ($this->conditions as $column => $value) { - if (is_string($column) || is_string($value)) + if (!is_int($column)) { $use_id = false; }