From d1e839625ee9b0ca796f83ff55404af4c6307561 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 7 Mar 2007 16:55:20 +0000 Subject: - fix some group specific bugs - correctly determining terrafrost's birthday mod git-svn-id: file:///svn/phpbb/trunk@7143 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 24b03fc367..dbe8330c90 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3151,8 +3151,15 @@ function get_backtrace() } // Strip the current directory from path - $trace['file'] = str_replace(array($path, '\\'), array('', '/'), $trace['file']); - $trace['file'] = substr($trace['file'], 1); + if (empty($trace['file'])) + { + $trace['file'] = ''; + } + else + { + $trace['file'] = str_replace(array($path, '\\'), array('', '/'), $trace['file']); + $trace['file'] = substr($trace['file'], 1); + } $args = array(); // If include/require/include_once is not called, do not show arguments - they may contain sensible information @@ -3177,7 +3184,7 @@ function get_backtrace() $output .= '
'; $output .= 'FILE: ' . htmlspecialchars($trace['file']) . '
'; - $output .= 'LINE: ' . $trace['line'] . '
'; + $output .= 'LINE: ' . ((!empty($trace['line'])) ? $trace['line'] : '') . '
'; $output .= 'CALL: ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']) . '(' . ((sizeof($args)) ? implode(', ', $args) : '') . ')
'; } -- cgit v1.2.1