From d134ddda91e67ef3e5897e764a6758ba5b2af25d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 3 Jul 2010 18:24:51 +0200 Subject: [PATCH] Removes useless code. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/validations.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } // }}} -- 2.1.4