diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 11:18:31 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 11:18:31 -0700 |
commit | 191ce0245d9f200f7d70bffc0499a2cece10487e (patch) | |
tree | d0ad081d70d4d0eebba364424228c1616601909c /modules/server_add/controllers/admin_server_add.php | |
parent | 2ca2e5b6f42e3c201827309535a4a5f5825f212a (diff) | |
parent | 6469763225b1f74bc5391f09446bcf280bea389e (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/server_add/controllers/admin_server_add.php')
-rw-r--r-- | modules/server_add/controllers/admin_server_add.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/server_add/controllers/admin_server_add.php b/modules/server_add/controllers/admin_server_add.php index 7cd82d60..38190fee 100644 --- a/modules/server_add/controllers/admin_server_add.php +++ b/modules/server_add/controllers/admin_server_add.php @@ -36,7 +36,7 @@ class Admin_Server_Add_Controller extends Admin_Controller { if ($form->validate()) { if (is_link($form->add_path->path->value)) { $form->add_path->path->add_error("is_symlink", 1); - } else if (! is_readable($form->add_path->path->value)) { + } else if (!is_readable($form->add_path->path->value)) { $form->add_path->path->add_error("not_readable", 1); } else { $path = $form->add_path->path->value; @@ -73,7 +73,7 @@ class Admin_Server_Add_Controller extends Admin_Controller { $directories = array(); $path_prefix = $this->input->get("q"); foreach (glob("{$path_prefix}*") as $file) { - if (is_dir($file)) { + if (is_dir($file) && !is_link($file)) { $directories[] = $file; } } |