From 5b7fbf47773b78bc24c461404f713def5df7d3b2 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Sat, 5 Aug 2023 17:16:24 +0200 Subject: [PATCH] update --- generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator.php b/generator.php index e704f1e..43ee33b 100644 --- a/generator.php +++ b/generator.php @@ -269,7 +269,7 @@ function readdirs($directory, $entries_array = array()) //} //var_dump($tablePaths); - $path = substr($directory, strlen('pages/')); + $path = substr($directory, strlen('pages/')) ?: '.'; $dir = $directory . '/' . $table; if (!file_exists($dir)) { mkdir($dir, 0755, true);