#150 urlencode() warning in file backend

open
Reini Urban
None
5
2012-10-11
2007-02-16
Erwann Penet
No

function _pagename2filename in backend/file.php seems to be taking sometimes a string as $pagename, sometimes an array.
I have added this line at the beginning of the function to get rid of the annoying Warnings:
if (is_array($pagename) && isset($pagename['linkto'])) $pagename=$pagename['linkto'];

Discussion

  • Reini Urban
    Reini Urban
    2007-02-16

    Logged In: YES
    user_id=13755
    Originator: NO

    Interesting, thanks! I try to find the real culprit. It didn't appear in the unittests.