diff --git a/lib/class.tx_ttproducts_form_div.php b/lib/class.tx_ttproducts_form_div.php index 5bd6b8944..49b42a5cc 100755 --- a/lib/class.tx_ttproducts_form_div.php +++ b/lib/class.tx_ttproducts_form_div.php @@ -235,7 +235,7 @@ static public function createTag ( if (isset($attributes) && is_array($attributes)) { $attributeTextArray[$k] = self::getAttributeString($attributes); } else { - if ($attributes != '' && $attributes{0} != ' ') { + if ($attributes != '' && substr($attributes, 0, 1) != ' ') { $attributeTextArray[$k] = ' ' . $attributes; } }