making sure coding guidelines are met... ;)

git-svn-id: file:///svn/phpbb/trunk@5431 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-01-06 07:48:51 +00:00
parent ff86c423cf
commit a05d3c14d2
2 changed files with 13 additions and 9 deletions

View file

@ -1535,16 +1535,19 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
{ {
case E_NOTICE: case E_NOTICE:
case E_WARNING: case E_WARNING:
if (defined('DEBUG_EXTRA')) if (defined('DEBUG_EXTRA'))
{ {
if (!strstr($errfile, 'cache') && !strstr($errfile, 'template.php')) if (strpos($errfile, 'cache') === false && strpos($errfile, 'template.php') === false)
{ {
echo "<b>PHP Notice</b>: in file <b>$errfile</b> on line <b>$errline</b>: <b>$msg_text</b><br>"; echo "<b>PHP Notice</b>: in file <b>$errfile</b> on line <b>$errline</b>: <b>$msg_text</b><br>";
} }
} }
break; break;
case E_USER_ERROR: case E_USER_ERROR:
if (isset($db)) if (isset($db))
{ {
$db->sql_close(); $db->sql_close();
@ -1583,7 +1586,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
echo ' </div>'; echo ' </div>';
echo ' </div>'; echo ' </div>';
echo ' <div id="page-footer">'; echo ' <div id="page-footer">';
echo ' Powered by phpBB &copy; '.date('Y').' <a href="http://www.phpbb.com/">phpBB Group</a>'; echo ' Powered by phpBB &copy; ' . date('Y') . ' <a href="http://www.phpbb.com/">phpBB Group</a>';
echo ' </div>'; echo ' </div>';
echo '</div>'; echo '</div>';
echo '</body>'; echo '</body>';
@ -1600,6 +1603,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
{ {
$user->session_begin(); $user->session_begin();
} }
if (empty($user->lang)) if (empty($user->lang))
{ {
$user->setup(); $user->setup();

View file

@ -389,7 +389,7 @@ class session
if ($this->data['user_id'] != ANONYMOUS) if ($this->data['user_id'] != ANONYMOUS)
{ {
// Delete existing session, update last visit info first! // Delete existing session, update last visit info first!
if ( !isset($this->data['session_time']) ) if (!isset($this->data['session_time']))
{ {
$this->data['session_time'] = time(); $this->data['session_time'] = time();
} }