diff options
Diffstat (limited to 'frontends/php/include/config.inc.php')
| -rw-r--r-- | frontends/php/include/config.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 696f2862..bbc3a32a 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -1271,6 +1271,10 @@ echo "</head>"; { $sql="select clock,value from history where itemid=$itemid and clock>$from and clock<$till order by clock"; } + if($item["value_type"]==ITEM_VALUE_TYPE_LOG) + { + $sql="select clock,value from history_log where itemid=$itemid and clock>$from and clock<$till order by clock"; + } else { $sql="select clock,value from history_str where itemid=$itemid and clock>$from and clock<$till order by clock"; |
