diff --git a/pathologic.module b/pathologic.module index 0fe47fc..cab0f31 100644 --- a/pathologic.module +++ b/pathologic.module @@ -169,7 +169,7 @@ function _pathologic_replace($matches) { // Bail out if it looks like there's only a fragment part. || (isset($parts['fragment']) && count($parts) === 1) // Bail out if it matches a path we want to ignore. - || ($path_matcher->matchPath($parts['path'], $cached_settings['current_settings']['ignore_paths'])) + || (isset($parts['path']) && $path_matcher->matchPath($parts['path'], $cached_settings['current_settings']['ignore_paths'])) ) { // Give up by "replacing" the original with the same. return $matches[0];