Fix when open_basedir restriction is in effect
Fix when open_basedir restriction is in effect

Using an empty string as `$dir` parameter will not work if an open_basedir restriction is in effect.

See first comment on the [manual page](http://php.net/manual/fr/function.tempnam.php).
eventviva/php-image-resize