Changeset:
        cb7e5ae0640d
        
https://sourceforge.net/p/mrbs/hg-code/ci/cb7e5ae0640d7c33669b06bee4f3b24fa6ea6b65
Author:
        Campbell Morrison <[email protected]>
Date:
        Sat Aug 27 15:17:01 2016 +0100
Log message:

Simplified code

diffstat:

 web/month.php |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (23 lines):

diff -r ccc32cc82ba7 -r cb7e5ae0640d web/month.php
--- a/web/month.php     Sat Aug 27 15:11:51 2016 +0100
+++ b/web/month.php     Sat Aug 27 15:17:01 2016 +0100
@@ -376,16 +376,11 @@
   {
     for (; $weekcol < 7; $weekcol++)
     {
-      if (is_hidden_day(($weekcol + $weekstarts) % 7))
-      {
-        $html .= "<td class=\"hidden_day\"><div 
class=\"cell_container\">&nbsp;</div></td>\n";
-      }
-      else
-      {
-        $html .= "<td class=\"invalid\"><div 
class=\"cell_container\">&nbsp;</div></td>\n";
-      }
+      $td_class = (is_hidden_day(($weekcol + $weekstarts) % 7)) ? 'hidden_day' 
: 'invalid';
+      $html .= "<td class=\"$td_class\"><div 
class=\"cell_container\">&nbsp;</div></td>\n";
     }
   }
+  
   $html .= "</tr>\n";
   $html .= "</tbody>\n";
   

------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to