diff options
author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-24 10:39:43 +0000 |
---|---|---|
committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-24 10:39:43 +0000 |
commit | f41d50841de55c6e2a14d9c4df9bcc3d6830d887 (patch) | |
tree | 39fd069054f81339faea67a25f5de33c54a9f801 /frontends/php/scripts.php | |
parent | 196f05691a8b11aca754a36ce64421c34148f733 (diff) | |
download | zabbix-f41d50841de55c6e2a14d9c4df9bcc3d6830d887.tar.gz zabbix-f41d50841de55c6e2a14d9c4df9bcc3d6830d887.tar.xz zabbix-f41d50841de55c6e2a14d9c4df9bcc3d6830d887.zip |
- [DEV-48] Support of Ping and Traceroute in Status of Triggers screen
git-svn-id: svn://svn.zabbix.com/trunk@4908 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/scripts.php')
-rw-r--r-- | frontends/php/scripts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/scripts.php b/frontends/php/scripts.php index 531e371e..84dd2b0d 100644 --- a/frontends/php/scripts.php +++ b/frontends/php/scripts.php @@ -58,7 +58,7 @@ if(isset($_REQUEST['action'])){ if(isset($_REQUEST['save'])){ $cond = (isset($_REQUEST['scriptid']))?(' AND scriptid<>'.$_REQUEST['scriptid']):(''); - $scripts = DBfetch(DBselect('SELECT count(scriptid) as cnt FROM scripts WHERE name='.zbx_dbstr($_REQUEST['name']).$cond,1)); + $scripts = DBfetch(DBselect('SELECT count(scriptid) as cnt FROM scripts WHERE name='.zbx_dbstr($_REQUEST['name']).$cond.' and '.DBin_node('scriptid', get_current_nodeid(false)),1)); if($scripts && $scripts['cnt']>0){ error(S_SCRIPT.SPACE.'['.htmlspecialchars($_REQUEST['name']).']'.SPACE.S_ALREADY_EXISTS_SMALL); @@ -202,4 +202,4 @@ else { ?> <?php include_once "include/page_footer.php"; -?>
\ No newline at end of file +?> |