Changeset:
        e54cd5a5be2b
        
https://sourceforge.net/p/mrbs/hg-code/ci/e54cd5a5be2badbfcef45dff01dd7b4132994c08
Author:
        Campbell Morrison <[email protected]>
Date:
        Tue Oct 04 21:09:59 2016 +0100
Log message:

Got rid of some more unnecessary error checking

diffstat:

 web/mrbs_sql.inc |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (32 lines):

diff -r 31d5a3052491 -r e54cd5a5be2b web/mrbs_sql.inc
--- a/web/mrbs_sql.inc  Tue Oct 04 18:56:47 2016 +0100
+++ b/web/mrbs_sql.inc  Tue Oct 04 21:09:59 2016 +0100
@@ -1561,12 +1561,6 @@
   
   $res = db()->query($sql, array($room_id));
   
-  if ($res === FALSE)
-  {
-    trigger_error(db()->error(), E_USER_WARNING);
-    return FALSE;
-  }
-  
   if ($res->count() == 0)
   {
     return NULL;
@@ -2077,13 +2071,11 @@
   
   $sql = "SELECT id FROM $tbl_entry WHERE repeat_id = ?";
   $res = db()->query_array($sql, array($repeat_id));
-  if ($res === FALSE)
-  {
-    trigger_error(db()->error(), E_USER_WARNING);
-  }
+
   foreach ($res as $id)
   {
     $bookings[] = get_entry_by_id($id);
   }
+  
   return $bookings;
 }

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to