Changeset:
        ff1ed3365eb8
        
https://sourceforge.net/p/mrbs/hg-code/ci/ff1ed3365eb8252b4e5bf7446100a98776adaf5e
Author:
        Campbell Morrison <[email protected]>
Date:
        Sun May 29 12:35:43 2016 +0100
Log message:

Simplified code

diffstat:

 web/mincals.inc |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (24 lines):

diff -r 623ac079a12d -r ff1ed3365eb8 web/mincals.inc
--- a/web/mincals.inc   Mon May 09 07:15:04 2016 +0100
+++ b/web/mincals.inc   Sun May 29 12:35:43 2016 +0100
@@ -242,14 +242,14 @@
   private function getDateLink($day, $month, $year)
   {
     $page = (func_num_args() > 3) ? func_get_arg(3) : $this->dmy;
-    if (empty($this->room))
+    $result .= "$page.php?year=$year&amp;month=$month&amp;day=$day&amp;area=" 
. $this->area;
+    
+    if (!empty($this->room))
     {
-      return 
$page.".php?year=$year&amp;month=$month&amp;day=$day&amp;area=".$this->area;
+      $result .= "&amp;room=".$this->room;
     }
-    else
-    {
-      return 
$page.".php?year=$year&amp;month=$month&amp;day=$day&amp;area=".$this->area."&amp;room=".$this->room;
-    }
+    
+    return $result;
   }
     
 

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to