From eefbd72bf82847fcc1b964f9f80200d2edd573f9 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sat, 31 Aug 2019 17:54:17 +0200 Subject: [PATCH] DT --- nconnector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nconnector.php b/nconnector.php index 9c4f79f..65d598f 100755 --- a/nconnector.php +++ b/nconnector.php @@ -21,8 +21,8 @@ $doldb->query("SELECT login, firstname, lastname, pass_crypted, fk_adherent_type while ($user = $doldb->result->fetch_assoc()) { $ncdb->query("SELECT uid FROM oc_accounts WHERE uid='$user->login'"); - echo "login:" . ($login["login"]); - if ( $nc->result->num_rows != 0 ) + echo "login:" . ($user->"login"]); + if ( $ncdb->result->num_rows != 0 ) { $ncuser = $ncdb->result->fetch_assoc(); echo "uid:" . $ncuser["uid"];