Commits

Arjan Scherpenisse  committed 8372b87

Fixed small thing in API upload check.

  • Participants
  • Parent commits 6204298

Comments (0)

Files changed (1)

File src/AnymetaAPI.php

         foreach (array_map('urldecode', explode('&', http_build_query($parameters, '', '&'))) as $line)
         {
             list($k,$v) = explode('=', $line, 2);
-            if ($v[0] == "@" && file_exists(substr($v, 1)))
+            if (strlen($v) && substr($v, 0, 1) == "@" && file_exists(substr($v, 1)))
             {
                 $v = base64_encode(file_get_contents(substr($v, 1)));
             }