Commit r2348: https://sourceforge.net/p/mrbs/code/2348/

------------------------------------------------------------------------
r2348 | cimorrison | 2012-07-22 16:20:38 +0100 (Sun, 22 Jul 2012) | 1 line
Changed paths:
   M /mrbs/trunk/web/Themes/default/header.inc

Added some SQL error reporting
------------------------------------------------------------------------

Index: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc    (revision 2347)
+++ mrbs/trunk/web/Themes/default/header.inc    (revision 2348)
@@ -172,6 +172,11 @@
             $sql .= " AND create_by='" . sql_escape($user) . "'";
           }
           $n_outstanding = sql_query1($sql);
+          if ($n_outstanding < 0)
+          {
+            trigger_error(sql_error(), E_USER_WARNING);
+            fatal_error(FALSE, get_vocab("fatal_db_error"));
+          }
           echo "<div id=\"n_outstanding\"" .
                (($n_outstanding > 0) ? " class=\"outstanding\"" : '') .
                ">\n";

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to