mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:35:15 +00:00
php8 cont.
This commit is contained in:
parent
c1dc4a2b94
commit
7c71e0b94a
2 changed files with 4 additions and 2 deletions
|
@ -47,7 +47,7 @@ class Enotify {
|
|||
dbesc($params['to_xchan'])
|
||||
);
|
||||
}
|
||||
if ($x & $y) {
|
||||
if ($x && $y) {
|
||||
$sender = $x[0];
|
||||
$recip = $y[0];
|
||||
} else {
|
||||
|
|
|
@ -177,7 +177,9 @@ function oembed_fetch_url($embedurl){
|
|||
logger('fetch failure: ' . $furl);
|
||||
|
||||
if($html_text) {
|
||||
$dom = @DOMDocument::loadHTML($html_text);
|
||||
$doc = new DOMDocument();
|
||||
$dom = @$doc->loadHTML($html_text);
|
||||
|
||||
if ($dom){
|
||||
$xpath = new DOMXPath($dom);
|
||||
$attr = "oembed";
|
||||
|
|
Loading…
Reference in a new issue