- Affected version
- 1.5.1
I got this error with latest two IPS imports I did
I didn't want to spend time debugging it and just went with
but I think something needs to be fixed there
Code:
ErrorException: [E_WARNING] end() expects parameter 1 to be array, bool given , src/addons/XFI/Import/Importer/IpsForums.php:1914
Code:
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] end...', '/var/www...', 1914, Array)
#1 src/addons/XFI/Import/Importer/IpsForums.php(1914): end(false)
#2 src/XF/Import/Runner.php(244): XFI\Import\Importer\IpsForums->stepPolls(Object(XF\Import\StepState), Array, 8)
#3 src/XF/Import/Runner.php(61): XF\Import\Runner->runStep('polls', Object(XF\Import\StepState), 8)
#4 src/XF/Admin/Controller/Import.php(234): XF\Import\Runner->run()
#5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Import->actionRun(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Import', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#10 src/XF.php(517): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}
I didn't want to spend time debugging it and just went with
Code:
if(!is_array($questions)){
continue;
}