/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to classes/draw.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-06-17 23:19:26 UTC
  • Revision ID: csa@dside.dyndns.org-20080617231926-w9mpfxw6lv0r0450
Administrative interface and better handling of missing group channels

Show diffs side-by-side

added added

removed removed

Lines of Context:
934
934
        fclose($f);
935
935
*/
936
936
        if (sizeof($time) > 0) {
 
937
 
 
938
            $empty_data = true;
 
939
            foreach ($values[$i] as $val) {
 
940
                if ($val !== NULL) {
 
941
                    $empty_data = false;
 
942
                    break;
 
943
                }
 
944
            }
 
945
 
 
946
            if ($empty_data) continue;
 
947
        
 
948
        
937
949
            $plot = new LinePlot($values[$i], $time);
938
950
            if (sizeof($GRAPH_COLORS)) {
939
951
                $color = $GRAPH_COLORS[$i%sizeof($GRAPH_COLORS)];
957
969
    
958
970
    if ($no_data) {
959
971
        $range = date("c", ceil($iv->window_start)) . " and " . date("c", floor($iv->window_start + $iv->window_size));
960
 
        throw new ADEIException(translate("No data between $range"));
 
972
        throw new ADEIException(translate("No data between: %s", $range), ADEIException::NO_DATA);
961
973
    }
962
974
 
963
975
    if ($show_gaps == DRAW::SHOW_GAPS) {