comment out debug lines for production use again
authorrobert <robert>
Fri, 6 May 2005 13:02:48 +0000 (13:02 +0000)
committerrobert <robert>
Fri, 6 May 2005 13:02:48 +0000 (13:02 +0000)
include/classes/rrdstat.php-class

index 0709315d178716bb789ec7a55fd33864fc7ca3aa..68887290c9fbfc3e5c29c174f81b4f6fb9d5cebf 100644 (file)
@@ -359,7 +359,7 @@ class rrdstat {
 
     if (strpos($return, 'ERROR') !== false) {
       trigger_error('rrd graph error: '.$return, E_USER_WARNING);
-      $return = $graph_cmd."\n\n".$return;
+//       $return = $graph_cmd."\n\n".$return;
     }
   return $return;
   }
@@ -382,7 +382,7 @@ class rrdstat {
     if (in_array($this->status, array('ok','readonly'))) {
       foreach (array('day','week','month','year') as $tframe) {
         $ret = $this->graph($tframe, null, $graph_extras);
-        $out .= '<p>'.nl2br($ret).'</p>';
+//         $out .= '<p>'.nl2br($ret).'</p>';
         $out .= '<p><img src="'.$basename.'-'.$tframe.'.png"></p>';
       }
     }