on test pour ne pas creer plusieurs comptes auteurs : curl_login

This commit is contained in:
Christophe 2020-08-31 11:44:55 +02:00
parent b772c4ca1c
commit 147bc80a76

View file

@ -42,6 +42,9 @@ function gamumail_upgrade($nom_meta_base_version, $version_cible) {
} }
function creer_compte_curl(){ function creer_compte_curl(){
if (sql_countsel('nom', 'spip_auteurs', 'nom="curl_login"')){
return;
}
$mdp = uniqid(uniqid(),1); $mdp = uniqid(uniqid(),1);
$set = [ $set = [
'nom' => 'curl_login', 'nom' => 'curl_login',