|
|
|
@ -50,8 +50,8 @@ class MessageManager |
|
|
|
* Gets the total number of messages, used for the inbox sortable table. |
|
|
|
* Gets the total number of messages, used for the inbox sortable table. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param bool $unread |
|
|
|
* @param bool $unread |
|
|
|
* |
|
|
|
|
|
|
|
* @param bool $listRead |
|
|
|
* @param bool $listRead |
|
|
|
|
|
|
|
* |
|
|
|
* @return int |
|
|
|
* @return int |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static function getNumberOfMessages($unread = false, $listRead = false) |
|
|
|
public static function getNumberOfMessages($unread = false, $listRead = false) |
|
|
|
@ -85,6 +85,7 @@ class MessageManager |
|
|
|
while ($row = Database::fetch_array($result, 'ASSOC')) { |
|
|
|
while ($row = Database::fetch_array($result, 'ASSOC')) { |
|
|
|
$list[] = $row; |
|
|
|
$list[] = $row; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $list; |
|
|
|
return $list; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$count = Database::fetch_array($result); |
|
|
|
$count = Database::fetch_array($result); |
|
|
|
|