Fix a bug introduced in 65ff2470a5,

clearly I didn't test this enough.  Further fix for #1460.
This commit is contained in:
Bharat Mediratta
2011-01-19 19:50:50 -08:00
parent 265e39fb57
commit 0126a0385d

View File

@@ -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)) {