diff --git a/page/currentBan.php b/page/currentBan.php
index a9c9acd..1bca902 100644
--- a/page/currentBan.php
+++ b/page/currentBan.php
@@ -12,8 +12,13 @@ function getCurrentBan($db, $sortBy = 'ban_date, ban_time', $order = 'DESC') {
}
//echo '
Currently ',abs($currentlybanned),' ',$grammer,' banned.
';
+ if (empty($sortBy)) {
+ $sortBy = 'ban_date';
+ }
+ $currentBan = getCurrentBan($db, $sortBy, $order);
+ $nbCurrentBan = count($currentBan);
?>
-
Currently Banned
+
Currently Banned ()
', $value['service'], '
diff --git a/page/lastBan.php b/page/lastBan.php
index 35626ba..379f1a6 100644
--- a/page/lastBan.php
+++ b/page/lastBan.php
@@ -9,7 +9,13 @@ function getLast24hBan($db, $sortBy = 'ban_date, ban_time', $order = 'DESC') {
}
return $lastBan;
}
+ if (empty($sortBy)) {
+ $sortBy = 'ban_date';
+ }
+ $getLast24hBan = getLast24hBan($db, $sortBy, $order);
+ $nbLast24hBan = count($getLast24hBan);
?>
+
Last 24h ban ()