[geeklog-cvs] geeklog: E_ALL fix
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jun 11 10:32:10 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f869991bf353
changeset: 7100:f869991bf353
user: Dirk Haun <dirk at haun-online.de>
date: Thu Jun 11 15:37:17 2009 +0200
description:
E_ALL fix
diffstat:
system/lib-security.php | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r 8048812c2dfb -r f869991bf353 system/lib-security.php
--- a/system/lib-security.php Thu Jun 11 15:16:08 2009 +0200
+++ b/system/lib-security.php Thu Jun 11 15:37:17 2009 +0200
@@ -219,13 +219,14 @@
}
}
- if ((empty ($_USER['uid']) && ($uid == 1)) || ($uid == $_USER['uid'])) {
- if (empty ($_GROUPS)) {
- $_GROUPS = SEC_getUserGroups ($uid);
+ if ((empty($_USER['uid']) && ($uid == 1)) ||
+ (isset($_USER['uid']) && ($uid == $_USER['uid']))) {
+ if (empty($_GROUPS)) {
+ $_GROUPS = SEC_getUserGroups($uid);
}
$groups = $_GROUPS;
} else {
- $groups = SEC_getUserGroups ($uid);
+ $groups = SEC_getUserGroups($uid);
}
if (is_numeric($grp_to_verify)) {
More information about the geeklog-cvs
mailing list