Functions: silenced PHP warnings on ob_* functions
authorDan
Fri, 21 Aug 2009 15:37:23 -0400
changeset 1092 3b97242ada21
parent 1091 bb8e04f74819
child 1093 be48c0a49c7d
Functions: silenced PHP warnings on ob_* functions
includes/functions.php
--- a/includes/functions.php	Fri Aug 21 13:50:45 2009 -0400
+++ b/includes/functions.php	Fri Aug 21 15:37:23 2009 -0400
@@ -565,7 +565,7 @@
     }
   }
   
-  ob_end_clean();
+  @ob_end_clean();
   
   $output->set_title($lang->get('user_csrf_confirm_title'));
   $output->header();
@@ -848,7 +848,7 @@
   global $db, $session, $paths, $template, $plugins; // Common objects
   $db->close();
   
-  if ( ob_get_status() )
+  if ( @ob_get_status() )
     ob_end_clean();
 
   // If the config hasn't been fetched yet, call grinding_halt.
@@ -889,7 +889,7 @@
 {
   global $db, $session, $paths, $template, $plugins; // Common objects
 
-  if ( ob_get_status() )
+  if ( @ob_get_status() )
     ob_end_clean();
 
   $paths->cpage['name'] = $t;
@@ -918,7 +918,7 @@
   if ( is_object($db) )
     $db->close();
   
-  if ( ob_get_status() )
+  if ( @ob_get_status() )
     ob_end_clean();
   
   if ( defined('ENANO_CLI') )