From 7a6b3a08275c8118a2dd17696fde3bf9a2a79bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Wed, 23 Apr 2014 16:06:20 +0200 Subject: [PATCH] Qual: Missing variable declaration --- htdocs/core/lib/images.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/images.lib.php b/htdocs/core/lib/images.lib.php index 4e0a8e86789..e7e633231a3 100644 --- a/htdocs/core/lib/images.lib.php +++ b/htdocs/core/lib/images.lib.php @@ -658,7 +658,7 @@ function moneyMeter($actualValue=0, $pendingValue=0, $intentValue=0) // actual $sectionHeight = round(($actualValue / $maximumValue) * $height); - $totalHeight = $totalHeight + $sectionHeight; + $totalHeight = $sectionHeight; if ( $sectionHeight > 0 ) { $section = $formSection; @@ -669,7 +669,7 @@ function moneyMeter($actualValue=0, $pendingValue=0, $intentValue=0) // pending $sectionHeight = round(($pendingValue / $maximumValue) * $height); - $totalHeight = $totalHeight + $sectionHeight; + $totalHeight += $sectionHeight; if ( $sectionHeight > 0 ) { $section = $formSection; @@ -680,7 +680,7 @@ function moneyMeter($actualValue=0, $pendingValue=0, $intentValue=0) // intent $sectionHeight = round(($intentValue / $maximumValue) * $height); - $totalHeight = $totalHeight + $sectionHeight; + $totalHeight += $sectionHeight; if ( $sectionHeight > 0 ) { $section = $formSection;