Permalink
Browse files

Merge branch 'master' into 3.0.x

  • Loading branch information...
2 parents 9c59254 + 6b4ccc5 commit e14141f2c5441ef046e7c8c005120312496c6b8c @bharat bharat committed Jan 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/server_add/controllers/server_add.php
@@ -95,7 +95,7 @@ public function start() {
if (server_add::is_valid_path($path)) {
$entry = ORM::factory("server_add_entry");
$entry->path = $path;
- $entry->is_directory = 1;
+ $entry->is_directory = intval(is_dir($path));
$entry->parent_id = null;
$entry->task_id = $task->id;
$entry->save();

0 comments on commit e14141f

Please sign in to comment.