Merge branch '245-fix_warning_when_setting_files_unwritable' into pu
This commit is contained in:
commit
d5e07b6a67
|
@ -559,6 +559,12 @@ class m_bro {
|
|||
}
|
||||
for ($i = 0; $i < count($d); $i++) {
|
||||
$d[$i] = ssla($d[$i]); // strip slashes if needed
|
||||
// If the form checkboxes are not checked, PHP will not fill in a
|
||||
// value at all for the permissions. Set the default to unwriteable
|
||||
// unless explicitly marked as writable.
|
||||
if (!isset($perm[$i])) {
|
||||
$perm[$i]['w'] = False;
|
||||
}
|
||||
if (!strpos($d[$i], "/")) { // caractre / interdit dans le nom du fichier
|
||||
$m = fileperms($absolute . "/" . $d[$i]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue