* Fix bug for compatible php8.0 .

This commit is contained in:
hufangzhou
2021-12-28 14:46:10 +08:00
parent df07ada2b3
commit 1a5adfe15f
10 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class taskModel extends model
*/
public function create($executionID)
{
if($this->post->estimate < 0)
if((float)$this->post->estimate < 0)
{
dao::$errors[] = $this->lang->task->error->recordMinus;
return false;