From 639d4ccb101e356213806d2d167fd993b1e73e2f Mon Sep 17 00:00:00 2001 From: rog1121 Date: Sat, 1 Mar 2014 17:00:51 -0700 Subject: [PATCH] Fix Notifications Class --- public/include/classes/notification.class.php | 2 +- public/include/pages/account/notifications.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 public/include/classes/notification.class.php mode change 100644 => 100755 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 100644 new mode 100755 index d4376005..41aa1d92 --- 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) { + public function getNotifications($account_id) { $this->debug->append("STA " . __METHOD__, 4); $stmt = $this->mysqli->prepare("SELECT * FROM $this->table WHERE account_id = ? ORDER BY time DESC"); if ($stmt && $stmt->bind_param('i', $account_id) && $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 100644 new mode 100755 index 09d6b911..5fbf0355 --- a/public/include/pages/account/notifications.inc.php +++ b/public/include/pages/account/notifications.inc.php @@ -19,7 +19,7 @@ if ($user->isAuthenticated()) { } // Fetch notifications - $aNotifications = $notification->getNofifications($_SESSION['USERDATA']['id']); + $aNotifications = $notification->getNotifications($_SESSION['USERDATA']['id']); if (!$aNotifications) $_SESSION['POPUP'][] = array('CONTENT' => 'Could not find any notifications', 'TYPE' => 'errormsg'); // Fetch global settings