diff --git a/html/forms/alert-templates.inc.php b/html/forms/alert-templates.inc.php index 21afa02fd..5838e9ae3 100644 --- a/html/forms/alert-templates.inc.php +++ b/html/forms/alert-templates.inc.php @@ -61,7 +61,7 @@ if(!empty($name)) { if(dbInsert(array('template' => $_REQUEST['template'], 'name' => $name), "alert_templates")) { $ok = "Alert template has been created."; } else { - $error = "Could not create aler template"; + $error = "Could not create alert template"; } } else { $error = "We could not work out what you wanted to do!"; diff --git a/html/includes/modal/attach_alert_template.inc.php b/html/includes/modal/attach_alert_template.inc.php index 5584e81e9..bbd8c63b8 100644 --- a/html/includes/modal/attach_alert_template.inc.php +++ b/html/includes/modal/attach_alert_template.inc.php @@ -33,8 +33,8 @@ if(is_admin() === false) { '.$rule['rule'].''; + foreach(dbFetchRows("SELECT `id`,`rule`,`name` FROM `alert_rules`", array()) as $rule) { + echo ''; } ?> @@ -56,7 +56,6 @@ if(is_admin() === false) {