Skip to content

Commit a346b6f

Browse files
committed
FIX Uncaught TypeError: count() in \lib\functions\testsuite.class.php on
line 1175 and line 1202
1 parent f24c629 commit a346b6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/functions/testsuite.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ public function exportTestSuiteDataToXML($container_id,$tproject_id,$optExport =
11721172
}
11731173
if (isset($optExport['CFIELDS']) && $optExport['CFIELDS']) {
11741174
$cfMap = (array)$this->get_linked_cfields_at_design($container_id,null,null,$tproject_id);
1175-
if( count($cfMap) > 0 ) {
1175+
if( !empty($cfMap) ) {
11761176
$cfXML = $this->cfield_mgr->exportValueAsXML($cfMap);
11771177
}
11781178
}
@@ -1199,7 +1199,7 @@ public function exportTestSuiteDataToXML($container_id,$tproject_id,$optExport =
11991199
}
12001200
}
12011201

1202-
if( !is_null($attach) && count($attach) > 0 ) {
1202+
if( !empty($attach) ) {
12031203
$attchRootElem = "<attachments>\n{{XMLCODE}}</attachments>\n";
12041204
$attchElemTemplate = "\t<attachment>\n" .
12051205
"\t\t<id><![CDATA[||ATTACHMENT_ID||]]></id>\n" .

0 commit comments

Comments
 (0)