Revision: 1791
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1791&view=rev
Author:   cimorrison
Date:     2011-02-17 15:13:04 +0000 (Thu, 17 Feb 2011)

Log Message:
-----------
Fixed bug whereby the "You are <user>" link was not generating reports properly.

Modified Paths:
--------------
    mrbs/trunk/web/report.php

Modified: mrbs/trunk/web/report.php
===================================================================
--- mrbs/trunk/web/report.php   2011-02-11 22:51:15 UTC (rev 1790)
+++ mrbs/trunk/web/report.php   2011-02-17 15:13:04 UTC (rev 1791)
@@ -797,14 +797,27 @@
 $user = getUserName();
 $is_admin =  (isset($user) && authGetUserLevel($user)>=2) ;
 
+// Set some defaults
+if (!isset($match_approved))
+{
+  $match_approved = APPROVED_BOTH;
+}
+if (!isset($match_confirmed))
+{
+  $match_confirmed = CONFIRMED_BOTH;
+}
+if (!isset($match_private))
+{
+  $match_private = PRIVATE_BOTH;
+}
 if (empty($summarize))
 {
   $summarize = REPORT + OUTPUT_HTML;
 }
 
-$output_as_html = (!isset($summarize)) || ($summarize & OUTPUT_HTML);
 $output_as_csv = $summarize & OUTPUT_CSV;
 $output_as_ical = $summarize & OUTPUT_ICAL;
+$output_as_html = ($summarize & OUTPUT_HTML) || !($output_as_csv || 
$output_as_ical);
 
 // Get information about custom fields
 $fields = sql_field_info($tbl_entry);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to