projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b6b1f
)
Removes useless code.
author
Stéphane Jacob
<sj@m4x.org>
Sat, 3 Jul 2010 16:24:51 +0000
(18:24 +0200)
committer
Sté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
patch
|
blob
|
blame
|
history
diff --git
a/include/validations.inc.php
b/include/validations.inc.php
index
dcc4b63
..
c3af12e
100644
(file)
--- 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;
}
// }}}