Fix notifications
This commit is contained in:
@@ -132,9 +132,12 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
$count = (int) $this->input->post('count');
|
||||
$offset = (int) $this->input->post('offset');
|
||||
|
||||
$returnData = ['status' => 'success', 'notifications' => []];
|
||||
|
||||
$notifications = $this->NotificationModel->getUserNotifications($_SESSION['user']['ID']);
|
||||
$notifications = $this->NotificationModel->getUserNotifications($_SESSION['user']['ID'], $count, $count * $offset);
|
||||
$returnData['notifications'] = $notifications;
|
||||
|
||||
echo json_encode($returnData);
|
||||
|
Reference in New Issue
Block a user