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