Skip to content

Commit da36677

Browse files
committed
Contribution - Fixing PHP fatal error: Uncaught TypeError: count(): must be of type… #378
1 parent d99acb8 commit da36677

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/functions/testcase.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6208,8 +6208,8 @@ function update_tcversion_steps($tcversion_id,$steps)
62086208
// Remember we are using (at least on Postgres FK => we need to delete
62096209
// in a precise order.
62106210

6211-
$stepSet = $this->get_steps($tcversion_id,0,
6212-
array('fields2get' => 'id', 'accessKey' => 'id'));
6211+
$stepSet = (array)$this->get_steps($tcversion_id,0,
6212+
array('fields2get' => 'id', 'accessKey' => 'id'));
62136213
if( count($stepSet) > 0 )
62146214
{
62156215
$this->delete_step_by_id(array_keys($stepSet));

0 commit comments

Comments
 (0)