]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/OEmbed.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / src / Content / OEmbed.php
index c37e36f6073c05d5560c4b1b1c44286deedffed7..6eb11c7b3b2041c4a1fc40e009bdc86334eb3317 100644 (file)
@@ -308,12 +308,12 @@ class OEmbed
                }
 
                $domain = parse_url($url, PHP_URL_HOST);
-               if (!x($domain)) {
+               if (empty($domain)) {
                        return false;
                }
 
                $str_allowed = Config::get('system', 'allowed_oembed', '');
-               if (!x($str_allowed)) {
+               if (empty($str_allowed)) {
                        return false;
                }
 
@@ -334,7 +334,7 @@ class OEmbed
                        throw new Exception('OEmbed failed for URL: ' . $url);
                }
 
-               if (x($title)) {
+               if (!empty($title)) {
                        $o->title = $title;
                }