mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update message.php
Add method to retrieve quick (rough) count of alert messages waiting.
This commit is contained in:
@@ -35,6 +35,10 @@ if (!class_exists('message')) {
|
||||
$_SESSION["messages"][$mood]['delay'][] = $delay;
|
||||
}
|
||||
|
||||
static function count() {
|
||||
return is_array($_SESSION["messages"]) ? sizeof($_SESSION["messages"]) : 0;
|
||||
}
|
||||
|
||||
static function html($clear_messages = true, $spacer = "") {
|
||||
$html = "${spacer}//render the messages\n";
|
||||
$spacer .="\t";
|
||||
|
||||
Reference in New Issue
Block a user