Update Poll.php

This commit is contained in:
Roman Kelesidis 2025-08-20 14:27:03 +03:00
commit 32d3160678
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -163,6 +163,6 @@ class Poll
public static function pollIsActive(array $t_data): bool
{
global $bb_cfg;
return ($t_data['topic_vote'] == 1 && $t_data['topic_time'] > TIMENOW - $bb_cfg['poll_max_days'] * 86400);
return ($t_data['topic_vote'] == POLL_STARTED && $t_data['topic_time'] > TIMENOW - $bb_cfg['poll_max_days'] * 86400);
}
}