1
0
Fork 0

Issue 11393: Fix failing preview

This commit is contained in:
Michael 2022-04-06 16:26:51 +00:00
parent 9339d4e53b
commit 65071ffc9e

View file

@ -3191,9 +3191,9 @@ class Item
*/
public static function getPlink($item)
{
if (Network::isValidHttpUrl($item['plink'])) {
if (!empty($item['plink']) && Network::isValidHttpUrl($item['plink'])) {
$plink = $item['plink'];
} elseif (Network::isValidHttpUrl($item['uri']) && !Network::isLocalLink($item['uri'])) {
} elseif (!empty($item['uri']) && Network::isValidHttpUrl($item['uri']) && !Network::isLocalLink($item['uri'])) {
$plink = $item['uri'];
}