Changeset 86 for trunk


Ignore:
Timestamp:
Jan 20, 2018, 5:20:40 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Infinite loop if no value are stored for selected measure.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Measure/Page.php

    r84 r86  
    4747  function GetTimeRange()
    4848  {
     49    if (!array_key_exists($_SESSION['Period'], $this->GraphTimeRanges))
     50      $_SESSION['Period'] = 'day';
     51   
    4952    $Result = $this->GraphTimeRanges[$_SESSION['Period']]['period'];
    5053    if ($Result == -1)
     
    126129      $LastMeasureValue = $Row['Avg'];
    127130    } else {
    128       $LastMeasureTime = $this->Time - $this->GetTimeRange();
     131      $LastMeasureTime = $this->Time;
    129132      $LastMeasureValue = 0;
    130133    }
Note: See TracChangeset for help on using the changeset viewer.