Commit 00520540 authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : success création des dossiers

parent 86ab1bba
......@@ -241,8 +241,8 @@ function url_to_array($url) {
/**
* On verifie si le dossier file existe. Si c'est pas le cas on le cree
*
* @param type $user_id
* @return type
* @param int $user_id
* @return boolean
*
* @created 19/10/2018
* @version V1.0.1
......@@ -279,9 +279,10 @@ function create_arborescence_files($user_id = null)
$success = true;
foreach ($paths as $path) {
if (file_exists($path) === false) {
$success = mkdir($path, 0777, true) && $success;
if (file_exists($path) === false && $success == true) {
$success = $success && false !== mkdir($path, 0777, true);
}
}
return $success;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment