summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/items.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/items.inc.php')
-rw-r--r--frontends/php/include/items.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php
index 8a4d9a4d..2cb22b50 100644
--- a/frontends/php/include/items.inc.php
+++ b/frontends/php/include/items.inc.php
@@ -1091,7 +1091,7 @@ COpt::profiling_stop('prepare table');
{
if($db_item["value_type"] == ITEM_VALUE_TYPE_LOG)
{
- $row=DBfetch(DBselect("select value from history_log where itemid=".$db_item["itemid"]." order by id desc", 1));
+ $row=DBfetch(DBselect("select value from history_log where itemid=".$db_item["itemid"]." order by clock desc", 1));
if($row)
{
$lastvalue=/*nbsp(htmlspecialchars(*/$row["value"]/*))*/;