Cast variable as string so ctype_digit() will work.
This commit is contained in:
parent
bea6b0f645
commit
861311a7f3
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ class Model extends Object
|
|||
$this->generateQuery();
|
||||
}
|
||||
// Pulls by ID
|
||||
elseif (ctype_digit($type_or_parameters))
|
||||
elseif (ctype_digit((string)$type_or_parameters))
|
||||
{
|
||||
$this->sql[] = 'WHERE ' . $this->id . ' = :' . $this->id . ' LIMIT 1;';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue