Skip to content

Bug in getNotifications methos #189

@diogocoutinho

Description

@diogocoutinho

The getNotifications with a bug of write.

Error:

In the line 430 of OneSignalClient:

        if($offset) {
            $endpoint.="&offset=".$$offset;
        }

Here seems a double "$" and caused a error when provide a offset by user

Solution:

Just remove a "$"

        if($offset) {
            $endpoint.="&offset=".$offset;
        }

I will a PR to help.

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