From 7d167175ef9878edfd488518e0bdd09493fe6b9b Mon Sep 17 00:00:00 2001 From: Andreas Hubel Date: Sun, 7 Jun 2020 21:20:45 +0200 Subject: fix bug in less.php --- assets/netcut | 1 + lib/less.php/Less.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 160000 assets/netcut diff --git a/assets/netcut b/assets/netcut new file mode 160000 index 0000000..3dcf07d --- /dev/null +++ b/assets/netcut @@ -0,0 +1 @@ +Subproject commit 3dcf07d83e57191c79654d97310cbeb494ea52bf diff --git a/lib/less.php/Less.php b/lib/less.php/Less.php index 3616cb4..398ad2d 100644 --- a/lib/less.php/Less.php +++ b/lib/less.php/Less.php @@ -6040,7 +6040,7 @@ class Less_Tree_Import extends Less_Tree{ //if the path is relative, the file should be in the current directory $import_dirs[ $this->currentFileInfo['currentDirectory'] ] = $this->currentFileInfo['uri_root']; - }else{ + }else if ($this->currentFileInfo){ //otherwise, the file should be relative to the server root $import_dirs[ $this->currentFileInfo['entryPath'] ] = $this->currentFileInfo['entryUri']; -- cgit v1.2.3