File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
administrator/components/com_admin Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -3541,13 +3541,15 @@ protected function fixFilesystemPermissions()
35413541 }
35423542
35433543 foreach ($ folders as $ folder ) {
3544- if (is_dir (JPATH_ROOT . $ folder ) && decoct (fileperms (JPATH_ROOT . $ folder ) & 0777 ) === '777 ' ) {
3545- @chmod (JPATH_ROOT . $ folder , 0755 );
3546- }
3544+ if (is_dir (JPATH_ROOT . $ folder )) {
3545+ if (decoct (fileperms (JPATH_ROOT . $ folder ) & 0777 ) === '777 ' ) {
3546+ @chmod (JPATH_ROOT . $ folder , 0755 );
3547+ }
35473548
3548- foreach (Folder::files (JPATH_ROOT . $ folder , '. ' , false , true ) as $ file ) {
3549- if (decoct (fileperms ($ file ) & 0777 ) === '777 ' ) {
3550- @chmod ($ file , 0644 );
3549+ foreach (Folder::files (JPATH_ROOT . $ folder , '. ' , false , true ) as $ file ) {
3550+ if (decoct (fileperms ($ file ) & 0777 ) === '777 ' ) {
3551+ @chmod ($ file , 0644 );
3552+ }
35513553 }
35523554 }
35533555 }
You can’t perform that action at this time.
0 commit comments