diff --git a/phpgwapi/inc/class.accounts_shared.inc.php b/phpgwapi/inc/class.accounts_shared.inc.php index 8c3c0a20e6..59f59c68f4 100644 --- a/phpgwapi/inc/class.accounts_shared.inc.php +++ b/phpgwapi/inc/class.accounts_shared.inc.php @@ -46,6 +46,18 @@ } } + function is_expired() + { + if ($this->data['expires'] != -1 && $this->data['expires'] < time()) + { + return True; + } + else + { + return False; + } + } + function read() { if (count($this->data) == 0)