diff --git a/nconnector.php b/nconnector.php index 7d0a2bc..e8e9f80 100755 --- a/nconnector.php +++ b/nconnector.php @@ -18,7 +18,7 @@ $doldb = new db("dolibarr"); $ncdb = new db("nextcloud"); //$ncdb->database = "nextcloud"; $doldb->query("SELECT login FROM llx_adherent"); -while ($login = $doldb->result->fetch_object()) +while ($login = $doldb->result->fetch_assoc()) { echo ($login["login"]); }