update
This commit is contained in:
1 parent
e098401cd1
commit
f6cfe6f117
1 file changed
+2
-3
@@ -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