Ignore:
Timestamp:
Mar 30, 2021, 11:16:34 PM (3 years ago)
Author:
roby
Message:

ulteriori modifiche per adeguamento a php7
Client: aggiornamento jpgraph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/grafici/jpgraph_date.php

    r284 r346  
    407407        if( $aStartTime == $aEndTime ) {
    408408            // Special case when we only have one data point.
    409             // Create a small artifical intervall to do the autoscaling
     409            // Create a small artificial interval to do the autoscaling
    410410            $aStartTime -= 10;
    411411            $aEndTime += 10;
     412        }
     413        if( abs($aEndTime - $aStartTime) <= 1 ) {
     414            // Special case when we only have one second.
     415            // Create a small artificial interval to do the autoscaling
     416            $aStartTime -= 1;
     417            $aEndTime += 1;
    412418        }
    413419        $done=false;
Note: See TracChangeset for help on using the changeset viewer.