Fix PHP warning about is_uploaded_file()

I am receiving PHP warnings like this:

    PHP Warning:  is_uploaded_file() expects parameter 1 to be string, array given in /home/ecotopia/Lychee/php/functions.php on line 119

I believe this commit fixes that issue.