mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-17 15:29:55 -04:00
Fix a bug introduced in 65ff2470a5,
clearly I didn't test this enough. Further fix for #1460.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user