Skip to content

Commit

Permalink
compatibility to PHP 7.4. Replace $attributes{0} by substr($attribute…
Browse files Browse the repository at this point in the history
…s, 0, 1)
  • Loading branch information
franzholz committed Mar 9, 2021
1 parent b1e52ec commit 5d353aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class.tx_ttproducts_form_div.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5d353aa

Please sign in to comment.