Fixed #95: Error at prev link on first / next link on last entry.

This commit is contained in:
azett 2022-06-18 11:45:01 +02:00
parent c55dcc6168
commit 92475a3dd6

View File

@ -46,7 +46,8 @@ if (!function_exists('get_nextpage_link')) :
$a = _get_nextprev_link('NextPage');
if ($q->single) {
// show next entry link only if there actually is a next entry - and only if one single entry is displayed
if (isset($a) && $q->single) {
$a [0] .= ' » ';
}
@ -62,7 +63,8 @@ if (!function_exists('get_prevpage_link')) :
$a = _get_nextprev_link('PrevPage');
if ($q->single) {
// show previous entry link only if there actually is a previous entry - and only if one single entry is displayed
if (isset($a) && $q->single) {
$a [0] = ' « ' . $a [0];
}