Skip to content

register_pointers causing a PHP Notice when on a page with no pointers #1

@cklosowski

Description

@cklosowski

Line 82 reads:

$this->pointers = $pointers;

If there are no pointers set for the currently viewed page, this will show a PHP Notice that the variable $pointers is undefined.

This can be easily fixed by including $pointers = NULL; on line 61, right after the function starts. This way if there are no pointers, the variable will still be defined and thus no longer give the notice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions