Skip to content

PHP Notices #6

@fireproofsocks

Description

@fireproofsocks

We're getting a lot of PHP notices like this:

[Tue Jan 21 18:07:58 2014] [error] [client 50.203.216.34] PHP Notice: Undefined offset: 1 in /path/to/core/components/fastfield/model/fastfield/fastfield.php on line 130, referer: http://www.oursite.com/

Comes down to this line:

    $this->_content = isset($gArray[$tag[1]]) ? $this->stripTags($gArray[$tag[1]]) : '';

You have to check both arrays for being set or not: $gArray and $tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions