Changeset:
        c07bd1ce42c0
        
https://sourceforge.net/p/mrbs/hg-code/ci/c07bd1ce42c0b10d11cf2efb7a61aa9518fdcf38
Author:
        Campbell Morrison <[email protected]>
Date:
        Sun Jan 17 20:29:33 2016 +0000
Log message:

Removed unnecessary trailing space from the result of get_rep_day_list()

diffstat:

 web/functions.inc |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 43abc59cf1c1 -r c07bd1ce42c0 web/functions.inc
--- a/web/functions.inc Wed Jan 13 14:21:34 2016 +0000
+++ b/web/functions.inc Sun Jan 17 20:29:33 2016 +0000
@@ -1893,16 +1893,18 @@
 {
   global $weekstarts;
   
-  $rep_day_list = "";
-  for ($i = 0; $i < 7; $i++)
+  $rep_days = array();
+  
+  for ($i=0; $i<7; $i++)
   {
     $daynum = ($i + $weekstarts) % 7;
     if ($rep_opt[$daynum])
     {
-      $rep_day_list .= day_name($daynum) . " ";
+      $rep_days[] = day_name($daynum);
     }
   }
-  return $rep_day_list;
+  
+  return implode(' ', $rep_days);
 }
 
 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to