fix reports

This commit is contained in:
unknown
2012-05-05 02:32:09 +03:00
parent 5adbc57bc9
commit 6b3e6b9968
3 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -13,7 +13,7 @@
public $unread, $nunread = false;
public $note;
public $inbox, $sent, $reading, $reply, $archived, $noticearray, $readingNotice = array();
public $inbox, $sent, $reading, $reply, $archived, $noticearray, $delnoticearray, $readingNotice = array();
private $totalMessage, $totalNotice;
private $allNotice = array();
@@ -112,6 +112,7 @@
}
if (!is_array($type)) { $type = array($type); }
$this->noticearray = $this->filter_by_value($database->getNotice($session->uid), "ntype", $type);
$this->delnoticearray = $this->filter_by_value($database->getDelNotice($session->uid), "ntype", $type);
}
if(isset($get['id'])) {
$this->readingNotice = $this->getReadNotice($get['id']);
@@ -214,6 +215,7 @@
global $database, $session;
$this->allNotice = $database->getNotice($session->uid);
$this->noticearray = $this->filter_by_value_except($this->allNotice, "ntype", 9);
$this->delnoticearray = $this->filter_by_value_except($database->getDelNotice($session->uid), "ntype", 9);
$this->totalNotice = count($this->allNotice);
}