FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Issues with compacting messages
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Issues with compacting messages [message #158499 is a reply to message #158310] Fri, 27 February 2009 16:37 Go to previous messageGo to previous message
JanRei is currently offline  JanRei   
Messages: 361
Registered: October 2005
Location: Germany
Karma:
Senior Member
Contributing Core Developer
Translator
What do you think about a small modification to the error handler so that it doesn't trigger on supressed error messages?

--- F:/xampp/htdocs/forum/adm/compact_orig.php	Thu Feb 26 12:44:46 2009
+++ F:/xampp/htdocs/forum/adm/compact.php	Thu Feb 26 18:41:48 2009
@@ -96,12 +96,16 @@
 set_error_handler ('error_handler');
 
 function error_handler ($level, $message, $file, $line, $context) {
-	echo <<<_END_
+	if (error_reporting() != 0) {
+		echo <<<_END_
 <script type="text/javascript">clearInterval(intervalID);</script>
 <p>An error was generated in file $file on line $line.</p>
 <p><font color="red">The error message was: $message</font></p>
 _END_;
-	exit;
+		exit;
+	} else {
+		return;
+	}
 } 
 
 function write_body_c($data, &$len, &$offset, $fid)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: maillist.php from 2.8, 2.8RC problem
Next Topic: maillist import from html to utf-8 incorrect
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 27 16:25:15 GMT 2024

Total time taken to generate the page: 0.06275 seconds