From f41d50841de55c6e2a14d9c4df9bcc3d6830d887 Mon Sep 17 00:00:00 2001 From: sasha Date: Wed, 24 Oct 2007 10:39:43 +0000 Subject: - [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 --- frontends/php/scripts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/scripts.php') 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 { ?> \ No newline at end of file +?> -- cgit