From ab129d094bd5e4335f13b489be55030c2ec3daa9 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Tue, 2 Jun 2015 17:50:31 +0200 Subject: [PATCH] remove unneeded code --- modules/monitoring/application/views/helpers/Perfdata.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/helpers/Perfdata.php b/modules/monitoring/application/views/helpers/Perfdata.php index 76e6518ec..092aeff0f 100644 --- a/modules/monitoring/application/views/helpers/Perfdata.php +++ b/modules/monitoring/application/views/helpers/Perfdata.php @@ -50,7 +50,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract } // restore original column array sorting $headers = array(); - foreach ($keys as $i => $column) { + foreach ($keys as $column) { if (isset($columns[$column])) { $headers[$column] = $labels[$column]; } @@ -63,7 +63,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract $data = array(); if ($perfdata->isVisualizable()) { $data []= $perfdata->asInlinePie($color)->render() . ' '; - } else if (isset($columns[''])) { + } elseif (isset($columns[''])) { $data []= ''; } if (! $compact) {