Skip to content

htmlentities() expects parameter 1 to be string, array given #62

@WickedSik

Description

@WickedSik

The source of this problem:

@foreach($dirs as $key => $dir)
        <li>
            <a class="pointer" id="folder_{{ $key }}" data-id="{{ $dir }}" onclick="clickFolder('folder_{{ $key }}', 0)">
                <i class="fa fa-folder folder-item" data-id="{{ $dir }}" id="{{ $dir }}-folder"></i> {!! $dir !!}
            </a>
        </li>
@endforeach

The fix isn't that difficult, actually. The reason this is happening, is because $dir contains 2 elements, with the keys short and long. While I do not exactly know which ones are needed, this was sitting in the 1.5.2 branch, and hasn't been fixed in master since.

Could it be that my version is broken or mismatched? I did check the vendor folder to see whether it was just my views, or whether it was in the package itself, and the conclusion of that is just above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WIPWorking in progress.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions