summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/server_add/controllers/server_add.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/server_add/controllers/server_add.php b/modules/server_add/controllers/server_add.php
index 71688605..11d4cb0a 100644
--- a/modules/server_add/controllers/server_add.php
+++ b/modules/server_add/controllers/server_add.php
@@ -169,7 +169,7 @@ class Server_Add_Controller extends Admin_Controller {
$child_paths = glob(preg_quote($entry->path) . "/*");
if (!$child_paths) {
- $child_paths = glob("$path/*");
+ $child_paths = glob("{$entry->path}/*");
}
foreach ($child_paths as $child_path) {
if (!is_dir($child_path)) {