Bug with no ref (and maybe 663): Currently if the "Search in subcategories" checkbox was unselected, all existing categories and elements were duplicated.
Cause: Wrong comparison between fileserver directory list and already known files in tables.
Resolution: keeping only the selected directory from the file server directory list in such cases,
if that one is still allocated.
git-svn-id: http://piwigo.org/svn/trunk@2344 68402e56-0260-453c-a942-63ccdbb3a9ee