Skip to content

Commit

Permalink
🚑 fix issue when we trying to rename rules in Advance Notifier #81
Browse files Browse the repository at this point in the history
  • Loading branch information
davoult committed Dec 8, 2020
1 parent c70939f commit 140d558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/admin_notifier/rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ function get_field($field1, $base=false, $field2=false) {
}

if($rule_name){
$sql_test = "SELECT count(name) FROM rules WHERE name=?";
$sql_test = "SELECT count(name) as count FROM rules WHERE name=?";
$rule_exist = sql($database_notifier,$sql_test, array($rule_name));
$ajout=$rule_exist[0];
$ajout=$rule_exist[0]['count'];
}

if(!$rule_notification || $rule_notification=="") {
Expand Down

0 comments on commit 140d558

Please sign in to comment.