Fixes typo (== instead of =)
authorPascal Corpet <pascal.corpet@m4x.org>
Mon, 25 Oct 2010 18:36:36 +0000 (20:36 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Mon, 25 Oct 2010 21:49:24 +0000 (23:49 +0200)
modules/carnet.php

index 88471ae..f5f4cb3 100644 (file)
@@ -415,7 +415,7 @@ class CarnetModule extends PLModule
         $user = Platal::session()->tokenAuth($alias, $hash);
         if (is_null($user)) {
             if (S::logged()) {
-                $user == S::user();
+                $user = S::user();
             } else {
                 return PL_FORBIDDEN;
             }
@@ -445,7 +445,7 @@ class CarnetModule extends PLModule
         $user = Platal::session()->tokenAuth($alias, $hash);
         if (is_null($user)) {
             if (S::logged()) {
-                $user == S::user();
+                $user = S::user();
             } else {
                 return PL_FORBIDDEN;
             }