some minor error suppresants

This commit is contained in:
Sarjuuk
2015-05-26 23:10:16 +02:00
parent ebc7a9bee8
commit 03b90c438f
9 changed files with 37 additions and 31 deletions

View File

@@ -4,7 +4,6 @@ if (!defined('AOWOW_REVISION'))
die('illegal access');
// exclude & weightscales are handled as Ajax
class UserPage extends GenericPage
{
protected $tpl = 'user';
@@ -28,10 +27,13 @@ class UserPage extends GenericPage
$this->notFound(sprintf(Lang::user('notFound'), $pageParam));
}
else if (User::$id)
{
header('Location: ?user='.User::$displayName, true, 302);
die();
}
else
$this->forwardToSignIn('user');
}
}
protected function generateContent()
{