From fcc91decd3db84a94505ac2147be987867dcfb41 Mon Sep 17 00:00:00 2001 From: artem Date: Thu, 10 Apr 2008 09:34:21 +0000 Subject: - merged rev. 5602:5604 of branches/1.4 (Artem) [fixed empty cells for IE] - fixes permissions SQL for different DBs (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5605 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/config.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'frontends/php/config.php') diff --git a/frontends/php/config.php b/frontends/php/config.php index b4b15306..c01fc4ed 100644 --- a/frontends/php/config.php +++ b/frontends/php/config.php @@ -404,8 +404,8 @@ include_once "include/page_header.php"; $mappings_row = array(); $db_maps = DBselect("select * from mappings". " where valuemapid=".$db_valuemap["valuemapid"]); - while($db_map = DBfetch($db_maps)) - { + + while($db_map = DBfetch($db_maps)){ array_push($mappings_row, $db_map["value"], SPACE.RARR.SPACE, @@ -416,7 +416,8 @@ include_once "include/page_header.php"; new CLink($db_valuemap["name"],"config.php?form=update&". "valuemapid=".$db_valuemap["valuemapid"].url_param("config"), "action"), - $mappings_row)); + empty($mappings_row)?SPACE:$mappings_row + )); } $table->Show(); -- cgit