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)
|
||||
{
|
||||
$stmt = self::query($sql, $params);
|
||||
|
||||
return $stmt->rowCount();
|
||||
$stmt = $this->query($sql, $params);
|
||||
return (int) $stmt->fetchColumn();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user