diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-23 16:06:28 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-23 16:06:28 +0000 |
| commit | d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf (patch) | |
| tree | ee658ad70006babca663891648e87614d2592567 /frontends/php | |
| parent | ffafca015474728b74f6868898b30989c112a88a (diff) | |
| download | zabbix-d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf.tar.gz zabbix-d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf.tar.xz zabbix-d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf.zip | |
Minor fixes in frontend.
git-svn-id: svn://svn.zabbix.com/trunk@2683 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
| -rw-r--r-- | frontends/php/events.php | 6 | ||||
| -rw-r--r-- | frontends/php/include/graphs.inc.php | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/frontends/php/events.php b/frontends/php/events.php index 983dc40d..0dd455bf 100644 --- a/frontends/php/events.php +++ b/frontends/php/events.php @@ -179,9 +179,9 @@ if($row["priority"]==0) $priority=S_NOT_CLASSIFIED; elseif($row["priority"]==1) $priority=S_INFORMATION; elseif($row["priority"]==2) $priority=S_WARNING; - elseif($row["priority"]==3) $priority=array("value"=>S_AVERAGE,"class"=>"average"); - elseif($row["priority"]==4) $priority=array("value"=>S_HIGH,"class"=>"high"); - elseif($row["priority"]==5) $priority=array("value"=>S_DISASTER,"class"=>"disaster"); + elseif($row["priority"]==3) $priority=new CCol(S_AVERAGE,"average"); + elseif($row["priority"]==4) $priority=new CCol(S_HIGH,"high"); + elseif($row["priority"]==5) $priority=new CCol(S_DISASTER,"disaster"); else $priority=$row["priority"]; $table->addRow(array( diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php index a27402ae..6775cdd0 100644 --- a/frontends/php/include/graphs.inc.php +++ b/frontends/php/include/graphs.inc.php @@ -223,7 +223,7 @@ break; } $db_items = DBselect("select itemid from items". - " where key_=".$item["key_"]. + " where key_=".zbx_dbstr($item["key_"]). " and hostid=".$chd_host["hostid"]); if(DBnum_rows($db_items)==0) { @@ -248,7 +248,7 @@ $chd_hosts = get_hosts_by_graphid($child["graphid"]); $chd_host = DBfetch($chd_hosts); $db_items = DBselect("select itemid from items". - " where key_=".$item["key_"]. + " where key_=".zbx_dbstr($item["key_"]). " and hostid=".$chd_host["hostid"]); if(DBnum_rows($db_items)==0) { @@ -291,7 +291,7 @@ $chd_hosts = get_hosts_by_graphid($child["graphid"]); $chd_host = DBfetch($chd_hosts); $db_items = DBselect("select itemid from items". - " where key_=".$item["key_"]. + " where key_=".zbx_dbstr($item["key_"]). " and hostid=".$chd_host["hostid"]); if(DBnum_rows($db_items)==0) return FALSE; |
