mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
- admin/update : bug when trying to synchronize a particular category (it
was deleted...) git-svn-id: http://piwigo.org/svn/trunk@666 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -142,6 +142,12 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_id
|
||||
|
||||
// retrieve file system sub-directories fulldirs
|
||||
$fs_fulldirs = get_fs_directories($basedir);
|
||||
// get_fs_directories doesn't include the base directory, so if it's a
|
||||
// category directory, we need to include it in our array
|
||||
if (isset($_POST['cat']))
|
||||
{
|
||||
array_push($fs_fulldirs, $basedir);
|
||||
}
|
||||
|
||||
$inserts = array();
|
||||
// new categories are the directories not present yet in the database
|
||||
|
||||
Reference in New Issue
Block a user