[FIX] fixed typo in notification class
This commit is contained in:
parent
1960df0d91
commit
887eef3f37
2
public/include/classes/notification.class.php
Executable file → Normal file
2
public/include/classes/notification.class.php
Executable file → Normal file
@ -58,7 +58,7 @@ class Notification extends Mail {
|
|||||||
* @param id int Account ID
|
* @param id int Account ID
|
||||||
* @return array Notification data
|
* @return array Notification data
|
||||||
**/
|
**/
|
||||||
public function getNofifications($account_id,$limit=50) {
|
public function getNotifications($account_id,$limit=50) {
|
||||||
$this->debug->append("STA " . __METHOD__, 4);
|
$this->debug->append("STA " . __METHOD__, 4);
|
||||||
$stmt = $this->mysqli->prepare("SELECT * FROM $this->table WHERE account_id = ? ORDER BY time DESC LIMIT ?");
|
$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())
|
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
0
public/include/pages/account/notifications.inc.php
Executable file → Normal file
@ -133,7 +133,7 @@ if (@$_SESSION['USERDATA']['id']) {
|
|||||||
$aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
$aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
||||||
|
|
||||||
// Fetch Last 5 notifications
|
// Fetch Last 5 notifications
|
||||||
$aLastNotifications = $notification->getNofifications($_SESSION['USERDATA']['id'], 5);
|
$aLastNotifications = $notification->getNotifications($_SESSION['USERDATA']['id'], 5);
|
||||||
$aGlobal['userdata']['lastnotifications'] = $aLastNotifications;
|
$aGlobal['userdata']['lastnotifications'] = $aLastNotifications;
|
||||||
|
|
||||||
// Other userdata that we can cache savely
|
// Other userdata that we can cache savely
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user