Removes useless code.
authorStéphane Jacob <sj@m4x.org>
Sat, 3 Jul 2010 16:24:51 +0000 (18:24 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 3 Jul 2010 16:24:51 +0000 (18:24 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/validations.inc.php

index dcc4b63..c3af12e 100644 (file)
@@ -622,11 +622,7 @@ abstract class ProfileValidate extends Validate
 
     public function id()
     {
-        if (!is_null($this->profile)) {
-            return $this->profile->id() . '_' . $this->type . '_' . $this->stamp;
-        } else {
-            return $this->user->id() . '_' . $this->type . '_' . $this->stamp;
-        }
+        return $this->profile->id() . '_' . $this->type . '_' . $this->stamp;
     }
 
     // }}}