Alert transport fixes (#8967)

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
Tony Murray
2018-07-31 15:53:03 -05:00
committed by Neil Lathwood
parent 9bc0c542a5
commit deb405fac9
16 changed files with 37 additions and 32 deletions

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env php
<?php
$init_modules = ['alerts', 'alerts-cli'];
$init_modules = ['alerts', 'laravel'];
require __DIR__ . '/../includes/init.php';
$options = getopt('t:h:r:p:s:d::');
if ($options['r'] && $options['h']) {
if (isset($options['r']) && isset($options['h'])) {
set_debug(isset($options['d']));
$rule_id = (int)$options['r'];