From 55a8f1e18208bdf3e78875280a3a7574231014bb Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Tue, 3 Sep 2019 01:14:32 +0200 Subject: [PATCH] DT --- nconnector.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nconnector.php b/nconnector.php index e4249b8..60e4369 100755 --- a/nconnector.php +++ b/nconnector.php @@ -76,29 +76,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)) + 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)) + 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)) + 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)) + 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)) + 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 > 8) exit; + if ($flag > 9) exit; } //$doldb->result->close(); ?>