aboutsummaryrefslogtreecommitdiff
path: root/lib/less.php
diff options
context:
space:
mode:
authordedeibel2018-12-22 14:16:39 +0100
committerdedeibel2018-12-22 14:16:39 +0100
commitb165d27cb95e764f119a0a212ec16a36f7b3281c (patch)
tree57837453f8be7133832e61d00bd0165e7a0d7804 /lib/less.php
parente31bb476eedadfd264279b882ad5fdec55eeee16 (diff)
Less.php fix php version problem with strpos wanting a string and nonempty needle value
Diffstat (limited to 'lib/less.php')
-rw-r--r--lib/less.php/Less.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/less.php/Less.php b/lib/less.php/Less.php
index ea69243..44cdffc 100644
--- a/lib/less.php/Less.php
+++ b/lib/less.php/Less.php
@@ -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));
}