* Fix bug for use ->post in if.

This commit is contained in:
chaideqing
2023-12-27 14:49:55 +08:00
parent bb2d88ff49
commit 7b53602aff
+1 -1
View File
@@ -1694,7 +1694,7 @@ class task extends control
*/
public function batchClose($confirm = 0)
{
if($this->post->taskIDList or $confirm)
if(!empty($_POST['taskIDList']) or $confirm)
{
$taskIDList = $this->post->taskIDList;
if(!isset($_POST['taskIDList']) && !empty($_SESSION['batchCloseTaskIDList']))