Author: dgoette
Date: Sat Apr 18 23:20:56 2009
New Revision: 380
URL:
http://svn.reactos.org/svn/reactos?rev=380&view=rev
Log:
fix copy&paste failure
Modified:
branches/danny-web/www/www.reactos.org/forum/includes/auth/auth_roscms.php
Modified:
branches/danny-web/www/www.reactos.org/forum/includes/auth/auth_roscms.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/f…
==============================================================================
---
branches/danny-web/www/www.reactos.org/forum/includes/auth/auth_roscms.php
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/forum/includes/auth/auth_roscms.php
[iso-8859-1] Sat Apr 18 23:20:56 2009
@@ -67,7 +67,7 @@
global $config;
// Check if our current RosCMS login is (still) valid, check the session expiration time
and perform session cleanups.
- $valid_login = (Subsystem_PHPBB::in(Login::REQUIRED, $config['script_path']) !=
0);
+ $valid_login = (Subsystem_PHPBB::in(Login::OPTIONAL, $config['script_path']) !=
0);
// If we have a valid login, but the phpBB user ID is still ANONYMOUS, the user was
logged in to RosCMS, but not yet to phpBB.
// So do that now.
@@ -83,9 +83,9 @@
global $db, $config;
// Get the User ID of the logged in user (if any), check the session expiration time and
perform session cleanups.
- $userid = (int)Subsystem_PHPBB::in(Login::REQUIRED, $config['script_path']);
+ $userid = (int)Subsystem_PHPBB::in(Login::OPTIONAL, $config['script_path']);
- if($userid)
+ if($userid > 0)
{
// Return the phpBB user row if a user is logged in.
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id =
$userid";