Author: Jorg Sowa (jorgsowa) Committer: Derick Rethans (derickr) Date: 2026-12-01T13:21:34Z
Commit: https://github.com/php/web-wiki/commit/60b6f1f3b63e2b20ffd41848a65a9e60903f9b70 Raw diff: https://github.com/php/web-wiki/commit/60b6f1f3b63e2b20ffd41848a65a9e60903f9b70.diff Don't auto-close doodle polls that have no closeon date close_on_ts defaults to false, and time() > false is true. Changed paths: M dokuwiki/lib/plugins/doodle/syntax.php Diff: diff --git a/dokuwiki/lib/plugins/doodle/syntax.php b/dokuwiki/lib/plugins/doodle/syntax.php index 8175c393..88758bd3 100755 --- a/dokuwiki/lib/plugins/doodle/syntax.php +++ b/dokuwiki/lib/plugins/doodle/syntax.php @@ -208,7 +208,7 @@ function render($mode, Doku_Renderer $renderer, $data) { // The auto-closer logic depends on the current time() and thus needs // to happen in render(), since the result of handle() is cached. - if (isset($data['params']['close_on_ts'])) { + if (!empty($data['params']['close_on_ts'])) { if (time() > $data['params']['close_on_ts']) { $data['params']['closed'] = 1; }
