fix wikipedia crash
This commit is contained in:
parent
2d63475b07
commit
cdf958d293
|
@ -1974,17 +1974,13 @@ class ddg{
|
||||||
|
|
||||||
if(count($tags) === 0){
|
if(count($tags) === 0){
|
||||||
|
|
||||||
$description = [
|
$description[] = [
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"value" =>
|
"value" =>
|
||||||
trim(
|
trim(
|
||||||
$this->fuckhtml
|
$this->fuckhtml
|
||||||
->getTextContent(
|
->getTextContent(
|
||||||
substr(
|
$html,
|
||||||
$html,
|
|
||||||
$start,
|
|
||||||
$tag["startPos"] - $start
|
|
||||||
),
|
|
||||||
true,
|
true,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue