diff --git a/widgets/graphical-navigation.php b/widgets/graphical-navigation.php index 181c7b8..451db98 100644 --- a/widgets/graphical-navigation.php +++ b/widgets/graphical-navigation.php @@ -67,7 +67,7 @@ class widget_comicpress_graphical_navigation extends WP_Widget { $ok = !empty($instance['archive_path']); break; } - + ob_start(); switch ($which) { case 'first': @@ -75,9 +75,9 @@ class widget_comicpress_graphical_navigation extends WP_Widget { case 'previous': case 'story_prev': case 'story_next': - $link = get_permalink($target); case 'next': - if ($instance['nextgohome'] == 'on') { $link = get_bloginfo('url'); } + $link = get_permalink($target->ID); + if (($which == 'next') && ($instance['nextgohome'] == 'on')) { $link = get_bloginfo('url'); } if ($ok) { ?>