projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6d6e268
)
Possible fix #3 for reflink
author
Roland Häder
<roland@mxchange.org>
Thu, 5 Nov 2009 16:51:30 +0000
(16:51 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 5 Nov 2009 16:51:30 +0000
(16:51 +0000)
inc/wrapper-functions.php
patch
|
blob
|
history
diff --git
a/inc/wrapper-functions.php
b/inc/wrapper-functions.php
index e9bd29b25ece037df65e7e7963af51f040d72b62..bc7e7714636bc0c6131ca21d9e8e5bc244fe8fe5 100644
(file)
--- a/
inc/wrapper-functions.php
+++ b/
inc/wrapper-functions.php
@@
-739,7
+739,7
@@
function getUserDataArray () {
// in, but you should use isMember() if you want to find that out.
function isUserDataValid () {
// User id should not be zero so abort here
// in, but you should use isMember() if you want to find that out.
function isUserDataValid () {
// User id should not be zero so abort here
- if (
getCurrentUserId() < 1
) return false;
+ if (
!isCurrentUserIdSet()
) return false;
// Is the array there and filled?
return ((isset($GLOBALS['user_data'][getCurrentUserId()])) && (count($GLOBALS['user_data'][getCurrentUserId()]) > 1));
// Is the array there and filled?
return ((isset($GLOBALS['user_data'][getCurrentUserId()])) && (count($GLOBALS['user_data'][getCurrentUserId()]) > 1));
@@
-753,7
+753,7
@@
function setCurrentUserId ($userid) {
// Getter for current userid
function getCurrentUserId () {
// Userid must be set before it can be used
// Getter for current userid
function getCurrentUserId () {
// Userid must be set before it can be used
- if (!is
set($GLOBALS['current_userid']
)) {
+ if (!is
CurrentUserIdSet(
)) {
// Not set
debug_report_bug('User id is not set.');
} // END - if
// Not set
debug_report_bug('User id is not set.');
} // END - if
@@
-762,5
+762,10
@@
function getCurrentUserId () {
return $GLOBALS['current_userid'];
}
return $GLOBALS['current_userid'];
}
+// Checks if current userid is set
+function isCurrentUserIdSet () {
+ return isset($GLOBALS['current_userid']);
+}
+
// [EOF]
?>
// [EOF]
?>