# HG changeset patch # User Dan # Date 1250883443 14400 # Node ID 3b97242ada21766974db5c29f004b59ff1a21caf # Parent bb8e04f748196e3835505a127c5d00f5ea14c95a Functions: silenced PHP warnings on ob_* functions diff -r bb8e04f74819 -r 3b97242ada21 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') )