Skip to content

Commit 4efb936

Browse files
authored
[4.3] Template Media folder should never disappear (#40719)
1 parent 165f176 commit 4efb936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

administrator/components/com_templates/src/Model/TemplateModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public function getDirectoryTree($dir)
430430
}
431431
}
432432

433-
return $result;
433+
return !empty($result) ? $result : ['.'];
434434
}
435435

436436
/**

0 commit comments

Comments
 (0)