(02.04.2015, 12:16)Zion schrieb: Versuchs mal so
PHP-Code:
if(($ZE_ACC->activated == 0 || $ZE_ACC->activated == 2) || $ZE_ACC->activation_code != ' ') {
if($ZE_ACC->activated == 0) {
header("Location: ./index.php?inc=login&loginevent=7 ");
die();
}
if($ZE_ACC->activated == 2) {
header("Location: ./index.php?inc=login&loginevent=21 ");
die();
}
}
Aktuell trifft nämlich die erste Abfrage immer zu, da der activation Code ja nicht ' ' ist. Ganz egal, das der Code nicht 0 ist, da ja WENN ODER abgefragt wird.
So wie oben, sollte es gehen
geht leider nicht könnte es an || $ZE_ACC->activation_code != ' ') liegen da ja bei einer 2 im activation_code nichts drinsteht bei mir und die abfrage bedeutet ja wenn etwas drinsteht bzw ungleich leeres feld hab auch ausprobiert im activation_code was einzutragen geht aber leider auch nicht