* testcaseModel: return false if the $type paramter is empty.

This commit is contained in:
liugang
2023-08-25 09:54:16 +08:00
parent 447acf77ac
commit a5066dcbde
2 changed files with 62 additions and 0 deletions
+2
View File
@@ -1369,6 +1369,8 @@ class testcaseModel extends model
*/
public function batchChangeType(array $caseIdList, string $type): bool
{
if(!$type) return false;
$caseIdList = array_filter($caseIdList);
if(!$caseIdList) return false;