Skip to content

Anchor::link() breaks when array is first query string parameter argument #5

Description

@pjbeardsley

When the first query string parameter is an array, the following notice is generated and the query string fails to generate:

Notice: Undefined offset: 1 in /app/lib/anchor/Anchor.php on line 759

If the first param is not an array, everything works as expected, even if one of the subsequent parameters is an array.

The issue exists in both this version and the iMarc fork.

At one point I found some other non-error-generating weirdness related to parameter behavior, which I attempted to fix in this pull request. That commit does NOT fix this issue.

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