From: <dw...@us...> - 2010-12-26 16:49:54
|
Revision: 66 http://nagios.svn.sourceforge.net/nagios/?rev=66&view=rev Author: dworth Date: 2010-12-26 16:49:48 +0000 (Sun, 26 Dec 2010) Log Message: ----------- used default values to eliminate comparison block Modified Paths: -------------- nagiosvshell/branches/devel/views/display_functions.php Modified: nagiosvshell/branches/devel/views/display_functions.php =================================================================== --- nagiosvshell/branches/devel/views/display_functions.php 2010-12-26 16:49:43 UTC (rev 65) +++ nagiosvshell/branches/devel/views/display_functions.php 2010-12-26 16:49:48 UTC (rev 66) @@ -352,14 +352,12 @@ */ function downtime_icon($arg) { + $img = ''; if(trim($arg)>0) { $img = '<img src="views/images/downtime.png" title="In Downtime" class="tableIcon" alt="DT" height="12" width="12" />'; } - else - { - $img = ''; - } + return $img; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |