diff options
author | Mario <mario@mariovavti.com> | 2021-05-14 08:56:07 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-05-14 08:56:07 +0000 |
commit | 635a24dff477548bdcf601874cb1ff2509aef3cc (patch) | |
tree | bc14a1800d978e0f924b0c25ef7f7a3b69887ba5 /Zotlabs/Module/Photos.php | |
parent | ded9f18b8a36cae8dfe1797b7ba87d7742c996df (diff) | |
parent | a03423794a1a9dc15588d40684fee3bf9a57b629 (diff) | |
download | volse-hubzilla-635a24dff477548bdcf601874cb1ff2509aef3cc.tar.gz volse-hubzilla-635a24dff477548bdcf601874cb1ff2509aef3cc.tar.bz2 volse-hubzilla-635a24dff477548bdcf601874cb1ff2509aef3cc.zip |
Merge branch 'dev' into 'dev'
Random PHP 8 fixes
See merge request hubzilla/core!1951
Diffstat (limited to 'Zotlabs/Module/Photos.php')
-rw-r--r-- | Zotlabs/Module/Photos.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php index 099289c03..e62accb06 100644 --- a/Zotlabs/Module/Photos.php +++ b/Zotlabs/Module/Photos.php @@ -876,7 +876,7 @@ class Photos extends \Zotlabs\Web\Controller { $prevlink = ''; $nextlink = ''; - if($_GET['order'] === 'posted') + if(isset($_GET['order']) && $_GET['order'] === 'posted') $order = 'ASC'; else $order = 'DESC'; @@ -901,8 +901,8 @@ class Photos extends \Zotlabs\Web\Controller { } } - $prevlink = z_root() . '/photos/' . \App::$data['channel']['channel_address'] . '/image/' . $prvnxt[$prv]['hash'] . (($_GET['order'] === 'posted') ? '?f=&order=posted' : ''); - $nextlink = z_root() . '/photos/' . \App::$data['channel']['channel_address'] . '/image/' . $prvnxt[$nxt]['hash'] . (($_GET['order'] === 'posted') ? '?f=&order=posted' : ''); + $prevlink = z_root() . '/photos/' . \App::$data['channel']['channel_address'] . '/image/' . $prvnxt[$prv]['hash'] . (($order == 'ASC') ? '?f=&order=posted' : ''); + $nextlink = z_root() . '/photos/' . \App::$data['channel']['channel_address'] . '/image/' . $prvnxt[$nxt]['hash'] . (($order == 'ASC') ? '?f=&order=posted' : ''); } @@ -987,7 +987,7 @@ class Photos extends \Zotlabs\Web\Controller { } $tags = array(); - if($link_item['term']) { + if(x($link_item, 'term')) { $cnt = 0; foreach($link_item['term'] as $t) { $tags[$cnt] = array(0 => format_term_for_display($t)); |