projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e03a98e
)
Fixes wrong call to uid.
author
Stéphane Jacob
<sj@m4x.org>
Tue, 22 Jun 2010 20:48:36 +0000
(22:48 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Tue, 22 Jun 2010 20:48:36 +0000
(22:48 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetgrp.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/xnetgrp.php
b/modules/xnetgrp.php
index
39c5da1
..
28d1dd3
100644
(file)
--- a/
modules/xnetgrp.php
+++ b/
modules/xnetgrp.php
@@
-768,12
+768,13
@@
class XnetGrpModule extends PLModule
function handler_unsubscribe(&$page)
{
$page->changeTpl('xnetgrp/membres-del.tpl');
- $user = S::user()->id();
- if (empty($user)) {
+ $user = S::user();
+ $uid = S::user()->id();
+ if (empty($uid)) {
return PL_NOT_FOUND;
}
$page->assign('self', true);
- $page->assign('user', $u
ser
);
+ $page->assign('user', $u
id
);
if (!Post::has('confirm')) {
return;