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
This commit is contained in:
Josh Sherman 2012-11-06 09:13:55 -05:00
parent b2037343d9
commit b41f2c12e9
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}