diff --git a/nconnector.php b/nconnector.php index 28a8d86..e4249b8 100755 --- a/nconnector.php +++ b/nconnector.php @@ -26,7 +26,7 @@ function concat ($a, $b) } $flag = 0; -$data = array("displayname"=>array("value"=>"","scope"=>"contacts","verified"=>"0"),"address"=>array("value"=>"[adresse]","scope"=>"private","verified"=>"0"),"website"=>array("value"=>"[website]","scope"=>"private","verified"=>"0"),"email"=>array("value"=>"","scope"=>"contacts","verified"=>"1"),"avatar"=>array("scope"=>"contacts","verified"=>"0"),"phone"=>array("value"=>"","scope"=>"private","verified"=>"0"),"twitter"=>array("value"=>"","scope"=>"private","verified"=>"0")); +$data = array("displayname"=>array("value"=>"","scope"=>"contacts","verified"=>"0"),"address"=>array("value"=>"[adresse]","scope"=>"private","verified"=>"0"),"website"=>array("value"=>"","scope"=>"private","verified"=>"0"),"email"=>array("value"=>"","scope"=>"contacts","verified"=>"1"),"avatar"=>array("scope"=>"contacts","verified"=>"0"),"phone"=>array("value"=>"","scope"=>"private","verified"=>"0"),"twitter"=>array("value"=>"","scope"=>"private","verified"=>"0")); $doldb = new db("dolibarr"); $ncdb = new db("nextcloud"); @@ -97,8 +97,8 @@ while ($user = $doldb->result->fetch_assoc()) echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error; } } - $ncdb->result->close(); - if ($flag > 7) exit; + //$ncdb->result->close(); + if ($flag > 8) exit; } -$doldb->result->close(); +//$doldb->result->close(); ?>