PHP Notice: Uninitialized string offset: 0
initialization, offset, php, string
Solution
To prevent this error, you should change your code like the following:
<?php if(is_array($social_discount) && isset($social_discount['name']) && $social_discount['name']!="") { ?>
Problem
I'm getting this error in my OpenCart log. Says the error is on line 1 which is: ``` <?php if(isset($social_discount['name']) && $social_discount['name']!="") { ?> ``` Would highly appreciate any help to fix this.