[FIX] fixed typo in notification class

This commit is contained in:
iAmShorty 2014-03-03 17:34:09 +01:00
parent 1960df0d91
commit 887eef3f37
3 changed files with 2 additions and 2 deletions

2
public/include/classes/notification.class.php Executable file → Normal file
View File

@ -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())

0
public/include/pages/account/notifications.inc.php Executable file → Normal file
View File

View File

@ -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