1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-21 21:26:13 +02:00

Improved substring method.

This commit is contained in:
tubalmartin
2012-03-16 03:21:35 +01:00
parent c3485ac5a5
commit b5807b8ad2

View File

@@ -491,10 +491,12 @@ class CSSmin
$to = $from_copy; $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;
} }