From 887eef3f3702bfdf977afb5fbd0573ee86434e17 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 3 Mar 2014 17:34:09 +0100 Subject: [PATCH] [FIX] fixed typo in notification class --- public/include/classes/notification.class.php | 2 +- public/include/pages/account/notifications.inc.php | 0 public/include/smarty_globals.inc.php | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 public/include/classes/notification.class.php mode change 100755 => 100644 public/include/pages/account/notifications.inc.php 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