From 925eeb979a3c51f6eeaa41797db30541cc857c53 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Mon, 13 Sep 2010 15:56:46 +0000 Subject: [PATCH] did not throw an error on non-existent category; thanks to pierovdfn for reporting --- fp-plugins/prettyurls/plugin.prettyurls.php | 1 + 1 file changed, 1 insertion(+) diff --git a/fp-plugins/prettyurls/plugin.prettyurls.php b/fp-plugins/prettyurls/plugin.prettyurls.php index 7731c91..5c4a8c3 100644 --- a/fp-plugins/prettyurls/plugin.prettyurls.php +++ b/fp-plugins/prettyurls/plugin.prettyurls.php @@ -169,6 +169,7 @@ class Plugin_PrettyURLs { if (PRETTYURLS_TITLES) { if ($c = array_search($matches[1], $this->categories)) $this->fp_params['cat'] = $c; + else return $matches[0]; } else { $this->fp_params['cat'] = $matches[1]; }