From: Stéphane Jacob Date: Sat, 3 Jul 2010 16:24:51 +0000 (+0200) Subject: Removes useless code. X-Git-Tag: xorg/1.0.1~364 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d134ddda91e67ef3e5897e764a6758ba5b2af25d;p=platal.git Removes useless code. Signed-off-by: Stéphane Jacob --- diff --git a/include/validations.inc.php b/include/validations.inc.php index dcc4b63..c3af12e 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -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; } // }}}