Changes to num_rows function for hhvm
This commit is contained in:
parent
2465941fdf
commit
6a50404d54
@ -447,7 +447,7 @@ abstract class DB_PDO extends PDO {
|
|||||||
|
|
||||||
if (preg_match($regex, $this->last_query, $output) > 0)
|
if (preg_match($regex, $this->last_query, $output) > 0)
|
||||||
{
|
{
|
||||||
$stmt = $this->query("SELECT COUNT(*) FROM {$output[1]}", PDO::FETCH_NUM);
|
$stmt = $this->query("SELECT COUNT(*) FROM {$output[1]}");
|
||||||
return $stmt->fetchColumn();
|
return $stmt->fetchColumn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user