joomla/joomla-cms — pull request #1637 by pdxfixit (2013-08-01 23:07:40+00:00)
Title: explicit type check

If $format = '', then the first check is included in the second.
Also, if a file extension "foo.0" were to be uploaded, ("0" == false) evaluates as true.