Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6cfe6f117 |
@@ -66,9 +66,8 @@ class Database
|
||||
*/
|
||||
public function query_count($sql, $params = null)
|
||||
{
|
||||
$stmt = self::query($sql, $params);
|
||||
|
||||
return $stmt->rowCount();
|
||||
$stmt = $this->query($sql, $params);
|
||||
return (int) $stmt->fetchColumn();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user