mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Fix: photos get added as albums in case only some photos are selected via server ad
Fixes #1619
This commit is contained in:
@@ -95,7 +95,7 @@ class Server_Add_Controller extends Admin_Controller {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user