mirror of
https://github.com/mrclay/minify.git
synced 2025-08-08 23:26:43 +02:00
use empty string comparison instead of strlen
This commit is contained in:
@@ -182,7 +182,7 @@ class Minify_ImportProcessor
|
||||
private function truepath($path)
|
||||
{
|
||||
// whether $path is unix or not
|
||||
$unipath = (strlen($path) == 0) || ($path{0} != '/');
|
||||
$unipath = ('' === $path) || ($path{0} !== '/');
|
||||
|
||||
// attempts to detect if path is relative in which case, add cwd
|
||||
if (strpos($path, ':') === false && $unipath) {
|
||||
|
Reference in New Issue
Block a user