diff --git a/nconnector.php b/nconnector.php index 3eb7253..9c4f79f 100755 --- a/nconnector.php +++ b/nconnector.php @@ -22,7 +22,7 @@ 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 ) + if ( $nc->result->num_rows != 0 ) { $ncuser = $ncdb->result->fetch_assoc(); echo "uid:" . $ncuser["uid"];