projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b8d0c1
)
Possible fix for missing user_data array element
author
Roland Häder
<roland@mxchange.org>
Thu, 14 Jan 2010 21:52:08 +0000
(21:52 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 14 Jan 2010 21:52:08 +0000
(21:52 +0000)
inc/libs/user_functions.php
patch
|
blob
|
history
diff --git
a/inc/libs/user_functions.php
b/inc/libs/user_functions.php
index 709369f4adcd1804a89d3ac407deb61f78c1516e..ef8c29fa9672373c42f9825beeecfbc2be4abb1e 100644
(file)
--- a/
inc/libs/user_functions.php
+++ b/
inc/libs/user_functions.php
@@
-290,9
+290,12
@@
function doUserLogin ($userid, $passwd, $successUrl = '', $errorUrl = 'modules.p
fetchUserData($userid);
}
fetchUserData($userid);
}
- // Get user data array and set userid (e.g. important if we login with nickname)
- $content = getUserDataArray();
- if (!empty($content['userid'])) $userid = bigintval($content['userid']);
+ // No error found?
+ if ($errorCode == '0') {
+ // Get user data array and set userid (e.g. important if we login with nickname)
+ $content = getUserDataArray();
+ if (!empty($content['userid'])) $userid = bigintval($content['userid']);
+ } // END - if
// Is there an entry?
if ((isUserDataValid()) && (getUserData('status') == 'CONFIRMED') && (!empty($content['userid']))) {
// Is there an entry?
if ((isUserDataValid()) && (getUserData('status') == 'CONFIRMED') && (!empty($content['userid']))) {