summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-27 09:02:54 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-27 09:02:54 +0000
commit4f6965b12e09c357d57b03fae328dcbb9d384310 (patch)
treee7e86f5f730b842092b85a47d7ae8af17e742ea1 /frontends
parent995a5adc8d6239a1fd9e605c57dea2d4ce19bc1d (diff)
downloadzabbix-4f6965b12e09c357d57b03fae328dcbb9d384310.tar.gz
zabbix-4f6965b12e09c357d57b03fae328dcbb9d384310.tar.xz
zabbix-4f6965b12e09c357d57b03fae328dcbb9d384310.zip
- [DEV-90] fixed SQL for pgsql (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5203 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r--frontends/php/include/screens.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/screens.inc.php b/frontends/php/include/screens.inc.php
index 1b285563..8c71f7d8 100644
--- a/frontends/php/include/screens.inc.php
+++ b/frontends/php/include/screens.inc.php
@@ -338,7 +338,7 @@
$sql = 'SELECT MAX(g.graphid) as graphid, MAX(g.graphtype) as graphtype, MIN(gi.yaxisside) as yaxissidel, MAX(gi.yaxisside) as yaxissider'.
' FROM graphs g, graphs_items gi '.
' WHERE g.graphid='.$resourceid.
- ' AND gi.graphid=.g.graphid ';
+ ' AND gi.graphid=g.graphid ';
$res = Dbselect($sql);
while($graph=DBfetch($res)){