did not throw an error on non-existent category; thanks to pierovdfn for reporting

This commit is contained in:
real_nowhereman 2010-09-13 15:56:46 +00:00
parent 5b5a46eeb0
commit 925eeb979a

View File

@ -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];
}