omg ...
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Mon, 27 Dec 2004 17:19:18 +0000 (17:19 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:53 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-149

include/validations/photos.inc.php

index 2541da7..a9e641e 100644 (file)
@@ -111,7 +111,7 @@ class PhotoReq extends Validate
     
     function handle_formu ()
     {
-        if (Session::get('submit') != "Accepter" && Session::get('submit') != "Refuser") {
+        if (Post::get('submit') != "Accepter" && Post::get('submit') != "Refuser") {
             return false;
         }
         
@@ -119,7 +119,7 @@ class PhotoReq extends Validate
         $mymail = new XOrgMailer('valid.photos.tpl');
         $mymail->assign('bestalias', $this->bestalias);
 
-        if (Session::get('submit') == "Accepter") {
+        if (Post::get('submit') == "Accepter") {
             $mymail->assign('answer','yes');
             $this->commit();
         } else {