mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
Less.php fix php version problem with strpos wanting a string and nonempty needle value
This commit is contained in:
parent
e31bb476ee
commit
b165d27cb9
1 changed files with 1 additions and 1 deletions
|
@ -10331,7 +10331,7 @@ class Less_SourceMap_Generator extends Less_Configurable {
|
|||
$basePath = $this->getOption('sourceMapBasepath');
|
||||
|
||||
// "Trim" the 'sourceMapBasepath' from the output filename.
|
||||
if (strpos($filename, $basePath) === 0) {
|
||||
if (! empty($basePath) && strpos($filename, (string) $basePath) === 0) {
|
||||
$filename = substr($filename, strlen($basePath));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue