diff --git a/nconnector.php b/nconnector.php index e653e6d..3381de4 100755 --- a/nconnector.php +++ b/nconnector.php @@ -24,7 +24,8 @@ while ($user = $doldb->result->fetch_assoc()) echo "login:" . ($login["login"]); if ( $nc->result->num_rows == 0 ) { - echo "uid:" . $ncdb->result["uid"]; + $ncuser = $ncdb->result->fetch_assoc() + echo "uid:" . $ncuser["uid"]; } $ncdb->result->close(); }