Moin,
ich habe mal alles rausgekürzt, was von außen nicht prüfbar ist, aber warum wird die if-Bedingung hier dennoch (also auch mit exakt diesem Code) bejaht???
$test=1;
if ( (detect_mobile() > 0) && ($test==1) ) {
echo("11111");
}
function detect_mobile() {
$mobile_browser = 0;
if ($mobile_browser > 0) {
return 0;
} else {
return 1;
}
} // end of function
Gruß, Kai