mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Fix PHP 5.6 bug
This commit is contained in:
parent
6f1bc7db14
commit
37895448ba
@ -22,6 +22,11 @@ final class Excerpt
|
|||||||
$this->context = $context;
|
$this->context = $context;
|
||||||
$this->offset = $offset;
|
$this->offset = $offset;
|
||||||
$this->text = \substr($context, $offset);
|
$this->text = \substr($context, $offset);
|
||||||
|
|
||||||
|
// only necessary pre-php7
|
||||||
|
if ($this->text === false) {
|
||||||
|
$this->text = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user