Issue 11393: Fix failing preview
This commit is contained in:
parent
9339d4e53b
commit
65071ffc9e
1 changed files with 2 additions and 2 deletions
|
@ -3191,9 +3191,9 @@ class Item
|
||||||
*/
|
*/
|
||||||
public static function getPlink($item)
|
public static function getPlink($item)
|
||||||
{
|
{
|
||||||
if (Network::isValidHttpUrl($item['plink'])) {
|
if (!empty($item['plink']) && Network::isValidHttpUrl($item['plink'])) {
|
||||||
$plink = $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'];
|
$plink = $item['uri'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue