Commit 3c1d00ce authored by Andy Hausmann's avatar Andy Hausmann

Fixed #23 (Github).

A bug occurring if there are slider items without a link defined. Just appears in environments with error reporting activated.
parent edb9a5d1
......@@ -86,10 +86,11 @@ class Tx_Flexslider_ViewHelpers_DynLinkViewHelper extends Tx_Fluid_Core_ViewHelp
$paramDataArr = explode(' ', $link);
// Combine labels and values into one array
$paramDataArr = Tx_Flexslider_Utility_Div::combineArray($this->paramLabels, $paramDataArr, false);
// Save link data into ViewHelper arguments
$this->setArgumentsFromArray($paramDataArr);
if (isset($this->arguments['href']) && !empty($this->arguments['href'])) {
if (isset($paramDataArr['href']) && !empty($paramDataArr['href'])) {
// Save link data into ViewHelper arguments
$this->setArgumentsFromArray($paramDataArr);
$cObj = t3lib_div::makeInstance('tslib_cObj');
$configuration = array(
'parameter' => $this->arguments['href'],
......
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