Index: branches/unlabeled/unlabeled-1.4.2/core/units/general/helpers/mod_rewrite_helper.php =================================================================== diff -u -r5892 -r5933 --- branches/unlabeled/unlabeled-1.4.2/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 5892) +++ branches/unlabeled/unlabeled-1.4.2/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 5933) @@ -258,7 +258,9 @@ WHERE Path = '.$this->Conn->qstr($template_path).' AND - ci.PrimaryCat = 1'; + ci.PrimaryCat = 1 + AND + p.Status = 1'; $template_found = $this->Conn->GetRow($sql); if ($template_found) { Index: branches/unlabeled/unlabeled-1.4.2/kernel/units/general/helpers/mod_rewrite_helper.php =================================================================== diff -u -r5892 -r5933 --- branches/unlabeled/unlabeled-1.4.2/kernel/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 5892) +++ branches/unlabeled/unlabeled-1.4.2/kernel/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 5933) @@ -258,7 +258,9 @@ WHERE Path = '.$this->Conn->qstr($template_path).' AND - ci.PrimaryCat = 1'; + ci.PrimaryCat = 1 + AND + p.Status = 1'; $template_found = $this->Conn->GetRow($sql); if ($template_found) {