This commit is contained in:
me committed 2026-09-04 09:15:10 +07:00
1 parent e098401cd1
commit f6cfe6f117
1 file changed
+2 -3
+2 -3
View File
@@ -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();
}
/**