summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/screens.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/include/screens.inc.php b/frontends/php/include/screens.inc.php
index d13411b4..6db521d6 100644
--- a/frontends/php/include/screens.inc.php
+++ b/frontends/php/include/screens.inc.php
@@ -651,12 +651,12 @@
global $DB;
$item=get_item_by_itemid($itemid);
- switch($item["value_type"])
- {
- case ITEM_VALUE_TYPE_FLOAT: $history_table = "history"; break;
+ switch($item["value_type"]){
+ case ITEM_VALUE_TYPE_FLOAT: $history_table = "history"; break;
case ITEM_VALUE_TYPE_UINT64: $history_table = "history_uint"; break;
- case ITEM_VALUE_TYPE_TEXT: $history_table = "history_text"; break;
- default: $history_table = "history_str"; break;
+ case ITEM_VALUE_TYPE_TEXT: $history_table = "history_text"; break;
+ case ITEM_VALUE_TYPE_LOG: $history_table = "history_log"; break;
+ default: $history_table = "history_str"; break;
}
$sql='SELECT h.clock,h.value,i.valuemapid '.