Some more removed notices

This commit is contained in:
Michael 2018-08-10 19:39:43 +00:00
parent 6b14a2623a
commit 170dd2a705
7 changed files with 43 additions and 39 deletions

View file

@ -86,7 +86,7 @@ class BBCode extends BaseObject
$post["url"] = $matches[1];
$post["title"] = $matches[2];
}
if (!empty($post["url"] == "") && (in_array($post["type"], ["link", "video"]))
if (!empty($post["url"]) && (in_array($post["type"], ["link", "video"]))
&& preg_match("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", $attacheddata, $matches)) {
$post["url"] = $matches[1];
}