Skip to content

Commit

Permalink
Fix very rare instance of damaged sessions calling add_current_page()…
Browse files Browse the repository at this point in the history
… from the navigation history class
  • Loading branch information
haraldpdl committed Jan 10, 2010
1 parent 0e8d975 commit a56b249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/includes/application_top.php
Expand Up @@ -306,7 +306,7 @@
}

// navigation history
if (tep_session_is_registered('navigation')) {
if (tep_session_is_registered('navigation') && is_object($navigation)) {
if (PHP_VERSION < 4) {
$broken_navigation = $navigation;
$navigation = new navigationHistory;
Expand Down

0 comments on commit a56b249

Please sign in to comment.