mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added Optional from
parameter
This commit is contained in:
@@ -21,7 +21,10 @@
|
||||
* @subpackage Alerts
|
||||
*/
|
||||
|
||||
$data = array("u" => $opts['user'], "h" => $opts['token'], "to" => implode(',',$opts['to']), "msg" => $obj['title'],);
|
||||
$data = array("u" => $opts['user'], "h" => $opts['token'], "to" => implode(',',$opts['to']), "msg" => $obj['title']);
|
||||
if (!empty($opts['from'])) {
|
||||
$data["from"] = $opts['from'];
|
||||
}
|
||||
$url = $opts['url'].'&op=pv&'.http_build_query($data);
|
||||
$curl = curl_init($url);
|
||||
|
||||
|
Reference in New Issue
Block a user