if (in_array($this->status, array('ok','readonly'))) {
foreach (array('day','week','month','year') as $tframe) {
$ret = $this->graph($tframe, null, $graph_extras);
if (in_array($this->status, array('ok','readonly'))) {
foreach (array('day','week','month','year') as $tframe) {
$ret = $this->graph($tframe, null, $graph_extras);