diff --git a/nconnector.php b/nconnector.php index d951032..1dd1816 100755 --- a/nconnector.php +++ b/nconnector.php @@ -81,29 +81,29 @@ while ($user = $doldb->result->fetch_assoc()) $oc_preferences_query_email = "INSERT INTO oc_preferences(userid, appid, configkey, configvalue) VALUES ('" . $user["login"] . "', 'settings', 'email', '" . $user["email"] . "')"; echo $account_data . EOL . $oc_account_query . EOL . $oc_users_query .EOL . $oc_group_user_query . EOL . $oc_preferences_query_quota . EOL . $oc_preferences_query_email . EOL; - if ($ncdb->query($oc_account_query)!==true) + if ($ncdb->query($oc_account_query)!==TRUE) { echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error; } - if ($ncdb->query($oc_users_query)!==true) + if ($ncdb->query($oc_users_query)!==TRUE) { echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error; } - if ($ncdb->query($oc_group_user_query)!==true) + if ($ncdb->query($oc_group_user_query)!==TRUE) { echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error; } - if ($ncdb->query($oc_preferences_query_quota)!==true) + if ($ncdb->query($oc_preferences_query_quota)!==TRUE) { echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error; } - if ($ncdb->query($oc_preferences_query_email)!==true) + if ($ncdb->query($oc_preferences_query_email)!==TRUE) { echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error; } } //$ncdb->result->close(); - if ($flag > 9) exit; + if ($flag > 10) exit; } //$doldb->result->close(); ?>