Skip to content

Commit 085255f

Browse files
committed
FIX: Fatal error: Uncaught TypeError: array_flip(): Argument #1 ($array)
must be of type array, null given in neverRunByPP.php:275
1 parent babdfe3 commit 085255f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/results/neverRunByPP.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ function initializeGui(&$dbh,&$argsObj,&$tplanMgr) {
272272

273273
// will be used when sending mail o creating spreadsheet
274274
$guiObj->platSet = array();
275-
$pp = (array)array_flip($argsObj->platSet);
275+
if (!empty($argsObj->platSet)) {
276+
$pp = (array)array_flip($argsObj->platSet);
277+
}
276278
if( !isset($pp[0]) ) {
277279
// we have platforms
278280
foreach( $argsObj->platSet as $pk ) {

0 commit comments

Comments
 (0)