projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89274a9
)
Fixes module 'admin' (handler 'user') when no login is provided.
author
Vincent Zanotti
<vincent.zanotti@m4x.org>
Sat, 11 Apr 2009 01:22:54 +0000
(
03:22
+0200)
committer
Vincent Zanotti
<vincent.zanotti@m4x.org>
Sat, 11 Apr 2009 01:22:54 +0000
(
03:22
+0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
modules/admin.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/admin.php
b/modules/admin.php
index
82344c7
..
1caaa6c
100644
(file)
--- a/
modules/admin.php
+++ b/
modules/admin.php
@@
-377,6
+377,10
@@
class AdminModule extends PLModule
// Loads the user identity using the environment.
$user = User::get($login);
+ if (!$user) {
+ return;
+ }
+
$login = $user->login();
$registered = ($user->state != 'pending');