From b6471fe377720c325a2368a56da0181a389c91b0 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 21 Oct 2009 21:47:41 -0400 Subject: [PATCH] fix logic error --- widgets/graphical-navigation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { ?>