Commit 1878bc65 authored by mfernea's avatar mfernea Committed by NickWilde

Issue #2834156 by mfernea, Vic Luijkx: PHP 7.1 causes error

parent fb4385d0
......@@ -115,8 +115,8 @@ function _views_slideshow_preprocess_views_view_slideshow(&$vars) {
// Build weights.
$weight = [];
for ($i = 1; $i <= count($widgetTypes); $i++) {
$weight['top'][$i] = '';
$weight['bottom'][$i] = '';
$weight['top'][$i] = [];
$weight['bottom'][$i] = [];
}
foreach ($widgetTypes as $widgetTypeId => $widgetTypeName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment