We can't use $aArray += $oObject to add a single object to an array, switch to $aArray[] = $oObject instead
This commit is contained in:
@@ -224,7 +224,7 @@ class distribution {
|
|||||||
$hResult = query_parameters($sQuery, $this->iDistributionId);
|
$hResult = query_parameters($sQuery, $this->iDistributionId);
|
||||||
|
|
||||||
while($oRow = mysql_fetch_object($hResult))
|
while($oRow = mysql_fetch_object($hResult))
|
||||||
$aTests += new testData(null, $oRow);
|
$aTests[] = new testData(null, $oRow);
|
||||||
|
|
||||||
return $aTests;
|
return $aTests;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user