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:
parent
b2037343d9
commit
b41f2c12e9
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue