mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 23:48:28 +01:00
Added function to test if an account is expired or not
This commit is contained in:
parent
d1ed14ae63
commit
d1eaa5b619
@ -46,6 +46,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function is_expired()
|
||||||
|
{
|
||||||
|
if ($this->data['expires'] != -1 && $this->data['expires'] < time())
|
||||||
|
{
|
||||||
|
return True;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function read()
|
function read()
|
||||||
{
|
{
|
||||||
if (count($this->data) == 0)
|
if (count($this->data) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user