From 400ac3385ced8ea2e8a1e345048af2b2f4003359 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Sat, 20 Mar 2010 11:38:29 +0100 Subject: [PATCH] Add isDead function to Profile MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- classes/profile.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/profile.php b/classes/profile.php index 4758abb..e4fcf43 100644 --- a/classes/profile.php +++ b/classes/profile.php @@ -225,6 +225,11 @@ class Profile return $this->sex == PlUser::GENDER_FEMALE; } + public function isDead() + { + return ($this->deathdate != null); + } + public function data() { $this->first_name; -- 2.1.4