From a8613a3e4d9aca897ab6cc4ab35d3b26d4c80e1b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 26 Feb 2008 09:45:51 +0000 Subject: [PATCH] Silence warnings if error_log is disabled. fixes #5771 git-svn-id: https://develop.svn.wordpress.org/trunk@7037 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index b41836d5f0..b7f396a6d8 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -184,7 +184,7 @@ class wpdb { $error_str = "WordPress database error $str for query $this->last_query"; if ( $caller = $this->get_caller() ) $error_str .= " made by $caller"; - error_log($error_str, 0); + @error_log($error_str, 0); // Is error output turned on or not.. if ( !$this->show_errors )