summaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-08-13 08:32:30 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-08-13 08:32:30 +0000
commitc3bcd9b2bd77e642f201838bc1cb17ec56d1690f (patch)
tree79470f97fcac891e29474bab9af1d99dcf7cc85c /upload.php
parent53cab4e5ba7e791c0c759a91895dffb072441017 (diff)
downloadampache-c3bcd9b2bd77e642f201838bc1cb17ec56d1690f.tar.gz
ampache-c3bcd9b2bd77e642f201838bc1cb17ec56d1690f.tar.bz2
ampache-c3bcd9b2bd77e642f201838bc1cb17ec56d1690f.zip
genre browsing should work now
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/upload.php b/upload.php
index 0d483092..db75ad2a 100644
--- a/upload.php
+++ b/upload.php
@@ -118,14 +118,19 @@ switch( $action ) {
}
} // if unwriteable
+ $catalog_id = find_upload_catalog($user->prefs['upload_dir']);
+ $catalog = new Catalog($catalog_id);
+
+
/* Make sure that it's not in a catalog dir */
- if (!$catalog = find_upload_catalog($user->prefs['upload_dir'])) {
+ if (!$catalog_id) {
$GLOBALS['error']->add_error('general',"Error: Upload Directory not inside a catalog");
if (conf('debug')) {
log_event($user->username,' upload ',"Error: Upload Directory not inside a catalog");
}
} // if in catalog dir
+
foreach ($_FILES as $key => $file) {
if (strlen($_FILES[$key]['name'])) {