Fixed poll issue
authorMarcel Werk <burntime@woltlab.com>
Thu, 13 Jun 2013 13:19:56 +0000 (15:19 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 13 Jun 2013 13:19:56 +0000 (15:19 +0200)
wcfsetup/install/files/lib/data/poll/Poll.class.php

index b701105ce2bd1dc64067b2a4c9f37d8a64523e0e..8f728ff44159733c3f0390837a9ae997c1f6d47b 100644 (file)
@@ -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);
        }
        
        /**