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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user