Skip to content

Commit

Permalink
[TASK] Eliminate warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Opitz committed Feb 26, 2020
1 parent 6909985 commit 0165ad8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/View/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public function fillFileMarkers(&$markers)
$maxCount = $fieldSettings['errorCheck.'][$key . '.']['maxCount'];
$markers['###' . $replacedFieldname . '_maxCount###'] = $maxCount;

$fileCount = count($sessionFiles[$replacedFieldname]);
$fileCount = (is_array($sessionFiles) && is_array($sessionFiles[$replacedFieldname])) ? count($sessionFiles[$replacedFieldname]) : 0;
$markers['###' . $replacedFieldname . '_fileCount###'] = $fileCount;

$remaining = $maxCount - $fileCount;
Expand Down Expand Up @@ -849,8 +849,8 @@ public function fillFileMarkers(&$markers)
$onClick .= 'return false;';

$link = '<a
href="javascript:void(0)"
class="formhandler_removelink"
href="javascript:void(0)"
class="formhandler_removelink"
onclick="' . str_replace(["\n", ' '], '', $onClick) . '"
>' . $text . '</a>';
}
Expand Down Expand Up @@ -1305,4 +1305,4 @@ protected function createStepBar($currentStep, $lastStep, $buttonNameBack = '',
}
return $content;
}
}
}

0 comments on commit 0165ad8

Please sign in to comment.