Skip to content

Notice: Trying to access array offset on value of type null in Core.php on line 18 #2

@ThinkingChimp

Description

@ThinkingChimp

This seemed to fix it, but could be more proper

Add isset() to $url

if (file_exists('../app/controllers/' . ucwords($url[0]) . '.php')) {
// Will set a new controller
$this->currentController = ucwords**(isset($url[0])**);
unset($url[0]);
}

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