Skip to content
Extraits de code Groupes Projets
Valider 88436444 rédigé par tcharlss's avatar tcharlss
Parcourir les fichiers

Notice php en moins

parent 60864945
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,7 +36,12 @@ function odt2spip_obtenir_commande_serveur($command) { ...@@ -36,7 +36,12 @@ function odt2spip_obtenir_commande_serveur($command) {
} }
@exec("which $command", $output, $err); @exec("which $command", $output, $err);
if (!$err and count($output) and $cmd = trim($output[0])) { if (
!$err
and is_array($output)
and count($output)
and $cmd = trim($output[0])
) {
spip_log("Commande '$command' trouvée dans $cmd", 'odtspip.' . _LOG_DEBUG); spip_log("Commande '$command' trouvée dans $cmd", 'odtspip.' . _LOG_DEBUG);
return $commands[$command] = $cmd; return $commands[$command] = $cmd;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter