It’s not that simple. The newer code offers functionality that I need. Anyway, here is the offending section of code.
[code=php] if ($filterdeclare == 1 AND $filterbypass == 0){
$resultfilter = false;
$filterdeclare = 0;
$afiltertext = ”;
if ($exfilter == true AND $mcfilter == true) {
if ($filterstring <> $filtertext){ //3
$arrayback[$zeilen] = ”;
$zeilen = $zeilen-1;
$filterbypass = 1;
}
}
else {
if ($exfilter == false){
if(strpos($filterstring, $filtertext) === false)
{$resultfilter = true;}
}
if ($mcfilter == false){
$filterstring = mb_convert_case($filterstring, MB_CASE_LOWER, “UTF-8”);
$afiltertext = mb_convert_case($filtertext, MB_CASE_LOWER, “UTF-8″);
if($afiltertext <> $filterstring)
{$resultfilter = true;}
if ($exfilter == false){
if(strpos($filterstring, $afiltertext)===false)
{$resultfilter = true;}
}
}
if ($resultfilter == true){
$arrayback[$zeilen] = ”;
$zeilen = $zeilen-1;
$filterbypass = 1;
}
}
}
The code section that works replaces this section with something much smaller, but with less functionality.
[code=php]
if ($filterdeclare == 1 AND $filterbypass==0){
if ($filterstring <> $filtertext){
$arrayback[$zeilen] = ”;
$zeilen = $zeilen-1;
$filterbypass = 1;
}
$filterdeclare = 0;
}
When the variables $mcfilter and $exfilter are set at true, the two codes should not be different from each other. But this is not the case. In addition, when the code is NOT being run, it still messes up the layout. I’ve pored over it several times, and I still can’t find any error. If anyone needs more information, like the entire page, I’d be happy to provide it, but I’m pretty sure the problem is here. I there anything fundamentally wrong with the first segment of code? And do the two segments of code act the same if $mcfilter and $exfilter are set to true?