+ testtaskModel: return empty array if the $idList parameter is empty.
This commit is contained in:
@@ -228,6 +228,7 @@ class testtaskModel extends model
|
||||
*/
|
||||
public function getByList(array $idList): array
|
||||
{
|
||||
if(!$idList) return array();
|
||||
return $this->dao->select('*')->from(TABLE_TESTTASK)->where('id')->in($idList)->fetchAll('id');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user