php8 cont.

This commit is contained in:
nobody 2021-03-10 15:28:37 -08:00
parent c1dc4a2b94
commit 7c71e0b94a
2 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,7 @@ class Enotify {
dbesc($params['to_xchan'])
);
}
if ($x & $y) {
if ($x && $y) {
$sender = $x[0];
$recip = $y[0];
} else {

View file

@ -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";