From: Matthias Schmidt Date: Sat, 1 Jun 2013 18:03:16 +0000 (+0200) Subject: Fixes Poll::isFinished() X-Git-Tag: 2.0.0_Beta_3~60 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51a15fd1bdaad9293718262baf5a59100c23d224;p=GitHub%2FWoltLab%2FWCF.git Fixes Poll::isFinished() Closes #1322 --- diff --git a/wcfsetup/install/files/lib/data/poll/Poll.class.php b/wcfsetup/install/files/lib/data/poll/Poll.class.php index 1e64953bdd..b701105ce2 100644 --- a/wcfsetup/install/files/lib/data/poll/Poll.class.php +++ b/wcfsetup/install/files/lib/data/poll/Poll.class.php @@ -117,11 +117,7 @@ class Poll extends DatabaseObject { * @return boolean */ public function isFinished() { - if ($this->endTime >= TIME_NOW) { - return true; - } - - return false; + return $this->endTime <= TIME_NOW; } /**