diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-05-15 15:16:05 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-05-15 15:16:05 +0200 |
commit | 2ee1e2af723ef812a6072fc26c175f1ca5819be5 (patch) | |
tree | 90cf55939df0a3f711ca5009f9330fcaca76c734 /Zotlabs/Module/Photos.php | |
parent | c3ad21c5486c58ae08aabbbbfbd23afdab15ec0c (diff) | |
parent | 635a24dff477548bdcf601874cb1ff2509aef3cc (diff) | |
download | volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.gz volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.bz2 volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
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)); |