Added Optional from parameter

This commit is contained in:
f0o
2015-10-20 19:40:11 +00:00
parent 4c3d80951b
commit aa7cd385fb
2 changed files with 5 additions and 2 deletions

View File

@@ -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);