From de9dc04ab98762c48a65e03e1a16228072b5ee83 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 13 Jun 2013 15:19:56 +0200 Subject: [PATCH] Fixed poll issue --- wcfsetup/install/files/lib/data/poll/Poll.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/poll/Poll.class.php b/wcfsetup/install/files/lib/data/poll/Poll.class.php index b701105ce2..8f728ff441 100644 --- a/wcfsetup/install/files/lib/data/poll/Poll.class.php +++ b/wcfsetup/install/files/lib/data/poll/Poll.class.php @@ -117,7 +117,7 @@ class Poll extends DatabaseObject { * @return boolean */ public function isFinished() { - return $this->endTime <= TIME_NOW; + return ($this->endTime && $this->endTime <= TIME_NOW); } /** -- 2.20.1