• These lines (38, 39, 40) are throwing an error (“Cannot use a scalar value as an array”):

    if(empty($instance['adid'])) $instance['adid'] = 0;
    if(empty($instance['siteid'])) $instance['siteid'] = $blog_id;
    if(empty($instance['title'])) $instance['title'] = '';

    It’s in adrotate-widget.php

    EDIT:
    When i tried to declare $instace as an array like so: $instance = array();
    …i got empty ads. No errors, but no ads too.

    • This topic was modified 7 years, 8 months ago by cdoc.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot use a scalar value as an array’ is closed to new replies.