Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change on the add_edit_rule to modify a rule without modify the name #2159

Merged
merged 2 commits into from
Oct 16, 2015

Conversation

PandaWawawa
Copy link
Contributor

No description provided.

@LibreNMS-CI
Copy link

Auto-Deploy finished, Test PR at http://2159.ci.librenms.org or https://2159.ci.librenms.org

if (dbFetchCell('SELECT `name` FROM `alert_rules` WHERE `name`=?', array($name)) == $name) {
$message = 'Addition failed : Name has already been used';
}
}else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you pop the else { onto a new line like:

}
else {

@LibreNMS-CI
Copy link

Auto-Deploy finished, Test PR at http://2159.ci.librenms.org or https://2159.ci.librenms.org

laf added a commit that referenced this pull request Oct 16, 2015
Change on the add_edit_rule to modify a rule without modify the name
@laf laf merged commit 8ff90eb into librenms:master Oct 16, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants