X-Git-Url: http://Server1/repobrowser/?p=kiriwrite%2F.git;a=blobdiff_plain;f=cgi-files%2Flib%2Fcompile.lib;h=3b667dd560616d635fdfdbb8c480decc5cfd0ebc;hp=acd7fbb9ac0e5161087a4cd5c523b9c1799caf3e;hb=78f6c5e8ed54c22b470764e2b93c42ef1f6644e8;hpb=f50ef089751cbe0dffa1dcc19a359b1d94737a59 diff --git a/cgi-files/lib/compile.lib b/cgi-files/lib/compile.lib index acd7fbb..3b667dd 100644 --- a/cgi-files/lib/compile.lib +++ b/cgi-files/lib/compile.lib @@ -212,8 +212,14 @@ sub kiriwrite_compile_makepages{ # is "on" or blank and if it is something else then # return an error. + if (!$override){ + + $override = "off"; + + } + if ($override eq "on"){ - } elsif (!$override){ + } elsif (!$override || $override eq "off"){ } else { # The override value is invalid so return an error. @@ -462,6 +468,17 @@ sub kiriwrite_compile_makepages{ %filter_info = $kiriwrite_dbmodule->getfilterinfo({ FilterID => $filter, Reduced => 1 }); + # Check if the filter is enabled and if it isn't then process + # the next filter. + + if (!$filter_info{"FilterEnabled"}){ + + # The filter is not enabled so process the next filter. + + next; + + } + # Check if any errors occured while getting the filter information. if ($kiriwrite_dbmodule->geterror eq "FilterDatabaseError"){