Added response to modal form when an error occurs

This commit is contained in:
laf
2015-05-22 08:17:26 +01:00
parent d124e55b3d
commit 490f94e2ed
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ $invert = mres($_POST['invert']);
$name = mres($_POST['name']);
if(empty($rule)) {
$update_message = "ERROR: No rule was generated";
$update_message = "ERROR: No rule was generated - did you forget to click and / or?";
} elseif(validate_device_id($_POST['device_id']) || $_POST['device_id'] == '-1' || $_POST['device_id'][0] == ':') {
$device_id = $_POST['device_id'];
if(!is_numeric($count)) {