mirror of
https://github.com/mrclay/minify.git
synced 2025-08-21 13:21:59 +02:00
Improved substring method.
This commit is contained in:
@@ -491,10 +491,12 @@ class CSSmin
|
||||
$to = $from_copy;
|
||||
}
|
||||
|
||||
return substr($str, $from, $to - $from);
|
||||
$substring = substr($str, $from, $to - $from);
|
||||
return ($substring === FALSE) ? '' : $substring;
|
||||
}
|
||||
|
||||
return substr($str, $from);
|
||||
$substring = substr($str, $from);
|
||||
return ($substring === FALSE) ? '' : $substring;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user