Commit 11859f45 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[BUGFIX] Return true, if enddate is not given

parent 41624077
......@@ -192,6 +192,9 @@ class Election extends AbstractEntity
*/
public function isElectionFinished()
{
if ($this->getEndDate()===NULL) {
return true;
}
if ($this->getEndDate()->getTimestamp() < time()) {
return true;
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment