Commit 77e4a80e by Alexander Makarov

Removed unused code

parent 0edd8bc6
...@@ -602,10 +602,8 @@ class BaseFileHelper ...@@ -602,10 +602,8 @@ class BaseFileHelper
$result['flags'] |= self::PATTERN_NEGATIVE; $result['flags'] |= self::PATTERN_NEGATIVE;
$pattern = StringHelper::byteSubstr($pattern, 1, StringHelper::byteLength($pattern)); $pattern = StringHelper::byteSubstr($pattern, 1, StringHelper::byteLength($pattern));
} }
$len = StringHelper::byteLength($pattern); if (StringHelper::byteLength($pattern) && StringHelper::byteSubstr($pattern, -1, 1) == '/') {
if ($len && StringHelper::byteSubstr($pattern, -1, 1) == '/') {
$pattern = StringHelper::byteSubstr($pattern, 0, -1); $pattern = StringHelper::byteSubstr($pattern, 0, -1);
$len--;
$result['flags'] |= self::PATTERN_MUSTBEDIR; $result['flags'] |= self::PATTERN_MUSTBEDIR;
} }
if (strpos($pattern, '/') === false) { if (strpos($pattern, '/') === false) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment