diff --git a/editor.php b/editor.php
index 77eda72..1598cd8 100644
--- a/editor.php
+++ b/editor.php
@@ -131,20 +131,21 @@ h2 {color: rgba(0,198,255,0.7)}
' . $t['none'] . '
';
- } else {
- $fileFolderName = str_replace("\\", "/", $last10FilesArray[$i]);
- // Get extension (prefix 'ext-' to prevent invalid classes from extensions that begin with numbers)
- $ext = "ext-" . pathinfo($docRoot . $iceRoot . $fileFolderName, PATHINFO_EXTENSION);
- echo '- ';
- echo '';
- echo str_replace($docRoot, "", str_replace("|", "/", $last10FilesArray[$i]));
- echo '
';
- if ($i < count($last10FilesArray) - 1) {echo PHP_EOL;};
- }
+ if (empty($ICEcoder["last10Files"])) {
+ echo '' . $t['none'] . '
';
+ } else {
+ for ($i = 0; $i < count($ICEcoder["last10Files"]); $i++) {
+ $fileFolderName = str_replace("\\", "/", $ICEcoder["last10Files"][$i]);
+ // Get extension (prefix 'ext-' to prevent invalid classes from extensions that begin with numbers)
+ $ext = "ext-" . pathinfo($docRoot . $iceRoot . $fileFolderName, PATHINFO_EXTENSION);
+ echo '- ';
+ echo '';
+ echo str_replace($docRoot, "", str_replace("|", "/", $ICEcoder["last10Files"][$i]));
+ echo '
';
+ if ($i < count($ICEcoder["last10Files"]) - 1) {
+ echo PHP_EOL;
+ };
+ }
}
;?>