mirror of
https://github.com/Ahwxorg/librey/
synced 2024-12-06 19:16:48 +01:00
Fix for "textContent" null
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
$title = $title->textContent;
|
||||
|
||||
$description = $xpath->evaluate(".//p[contains(@class, 's')]", $result)[0]->textContent;
|
||||
$description = ($xpath->evaluate(".//p[contains(@class, 's')]", $result)[0] ?? null) ?->textContent ?? '';
|
||||
|
||||
array_push($results,
|
||||
array (
|
||||
|
||||
Reference in New Issue
Block a user