projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfdc10b
)
Fixes last connexion on user admin page.
author
Stéphane Jacob
<sj@m4x.org>
Mon, 9 Apr 2012 14:54:41 +0000
(16:54 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Mon, 9 Apr 2012 14:54:41 +0000
(16:54 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/admin.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/admin.php
b/modules/admin.php
index
4fc5989
..
3486164
100644
(file)
--- a/
modules/admin.php
+++ b/
modules/admin.php
@@
-713,7
+713,7
@@
class AdminModule extends PLModule
// Displays last login and last host information.
$res = XDB::query("SELECT start, host
FROM log_sessions
- WHERE uid = {?} AND suid
= 0
+ WHERE uid = {?} AND suid
IS NULL
ORDER BY start DESC
LIMIT 1", $user->id());
list($lastlogin,$host) = $res->fetchOneRow();