diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 328f86bb2a..be0ef0e237 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3499,6 +3499,8 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
echo '[phpBB Debug] PHP Notice: in file ' . $errfile . ' on line ' . $errline . ': ' . $msg_text . '
' . "\n";
}
+ return;
+
break;
case E_USER_ERROR: