Issue 11393: Fix failing preview
This commit is contained in:
parent
9339d4e53b
commit
65071ffc9e
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue