Cast variable as string so ctype_digit() will work.

This commit is contained in:
Josh Sherman 2011-01-15 17:33:37 -05:00
parent bea6b0f645
commit 861311a7f3

View file

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