From 9da944c61e58376e731b68860fb886c0aac1f284 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 12 Jan 2014 09:15:51 +0100 Subject: [PATCH] [FIX] Day in seconds wrong --- public/include/pages/admin/dashboard.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/include/pages/admin/dashboard.inc.php b/public/include/pages/admin/dashboard.inc.php index 85e7f35f..5ca12b11 100644 --- a/public/include/pages/admin/dashboard.inc.php +++ b/public/include/pages/admin/dashboard.inc.php @@ -48,11 +48,11 @@ $smarty->assign('USER_INFO', $aUserInfo); // Fetch login information $aLoginInfo = array( - '24hours' => $user->getCountFiltered('last_login', time() - 3600, 'i', '>='), - '7days' => $user->getCountFiltered('last_login', (time() - (3600 * 7)), 'i', '>='), - '1month' => $user->getCountFiltered('last_login', (time() - (3600 * 7 * 4)), 'i', '>='), - '6month' => $user->getCountFiltered('last_login', (time() - (3600 * 7 * 4 * 6)), 'i', '>='), - '1year' => $user->getCountFiltered('last_login', (time() - (3600 * 365)), 'i', '>=') + '24hours' => $user->getCountFiltered('last_login', time() - 86400, 'i', '>='), + '7days' => $user->getCountFiltered('last_login', (time() - (86400 * 7)), 'i', '>='), + '1month' => $user->getCountFiltered('last_login', (time() - (86400 * 7 * 4)), 'i', '>='), + '6month' => $user->getCountFiltered('last_login', (time() - (86400 * 7 * 4 * 6)), 'i', '>='), + '1year' => $user->getCountFiltered('last_login', (time() - (86400 * 365)), 'i', '>=') ); $smarty->assign('USER_LOGINS', $aLoginInfo);