aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 2e022b8966..cc321003ca 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -797,6 +797,15 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
break;
case E_USER_NOTICE:
+ // 20021125 Bartvb (todo)
+ // This is a hack just to show something useful.
+ // $msg_text won't contain anything if $user isn't there yet.
+ // I ran into this problem when installing without makeing config_cache.php writable
+ if ( !class_exists($user) )
+ {
+ die("Unable to show notice, \$user class hasn't been instantiated yet.<br />Error triggered in: " . $errfile .":". $errline);
+ }
+
if (empty($user->session_id))
{
$user->start();
@@ -842,4 +851,4 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
}
}
-?> \ No newline at end of file
+?>