Parse error: syntax error, unexpected T_BOOLEAN_AND

WRInaute passionné
Parse error: syntax error, unexpected T_BOOLEAN_AND

bonjour je souffre sur un casse tete chinois

voici la portion de code qui me revoi cette erreure, c'est une question de parenthéses mal fermées ou fermée trop tot dans le if ?

Code:
if
			(
				(( $row['user_level'] == USER && $board_config['allow_pm_autoreply'] == USER )
|| ($row['user_level'] == MOD && ($board_config['allow_pm_autoreply'] == MOD 
|| $board_config['allow_pm_autoreply'] == USER) 
|| ( $row['user_level'] == ADMIN && $board_config['allow_pm_autoreply'] != -1))	&& $row['user_pm_autoreply'] == 1)	&& $row['user_pm_autoreply'] == 1) && !in_array($userdata['username'], $pm_whitelist))
 
Nouveau WRInaute
Code:
if( 
   (
    ( $row['user_level'] == USER && $board_config['allow_pm_autoreply'] == USER ) 
    ||
    (
     $row['user_level'] == MOD 
	  && ( $board_config['allow_pm_autoreply'] == MOD || $board_config['allow_pm_autoreply'] == USER )
	  || ( $row['user_level'] == ADMIN && $board_config['allow_pm_autoreply'] != -1 )
    ) && $row['user_pm_autoreply'] == 1
   ) && $row['user_pm_autoreply'] == 1
  ) 

  && !in_array($userdata['username'], $pm_whitelist) )  ???

le nombre de parenthese ouvrante et fermante est diffrent, ' && !in_array($userdata['username'], $pm_whitelist) ' se retrouve hors du if
 
Discussions similaires
Haut