diff --git a/public/include/classes/notification.class.php b/public/include/classes/notification.class.php old mode 100755 new mode 100644 index bb7506f3..cc586ce1 --- a/public/include/classes/notification.class.php +++ b/public/include/classes/notification.class.php @@ -58,7 +58,7 @@ class Notification extends Mail { * @param id int Account ID * @return array Notification data **/ - public function getNofifications($account_id,$limit=50) { + public function getNotifications($account_id,$limit=50) { $this->debug->append("STA " . __METHOD__, 4); $stmt = $this->mysqli->prepare("SELECT * FROM $this->table WHERE account_id = ? ORDER BY time DESC LIMIT ?"); if ($stmt && $stmt->bind_param('ii', $account_id, $limit) && $stmt->execute() && $result = $stmt->get_result()) diff --git a/public/include/pages/account/notifications.inc.php b/public/include/pages/account/notifications.inc.php old mode 100755 new mode 100644 diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index ec85083d..179c4820 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -133,7 +133,7 @@ if (@$_SESSION['USERDATA']['id']) { $aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']); // Fetch Last 5 notifications - $aLastNotifications = $notification->getNofifications($_SESSION['USERDATA']['id'], 5); + $aLastNotifications = $notification->getNotifications($_SESSION['USERDATA']['id'], 5); $aGlobal['userdata']['lastnotifications'] = $aLastNotifications; // Other userdata that we can cache savely