diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-08-13 08:32:30 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-08-13 08:32:30 +0000 |
commit | c3bcd9b2bd77e642f201838bc1cb17ec56d1690f (patch) | |
tree | 79470f97fcac891e29474bab9af1d99dcf7cc85c /upload.php | |
parent | 53cab4e5ba7e791c0c759a91895dffb072441017 (diff) | |
download | ampache-c3bcd9b2bd77e642f201838bc1cb17ec56d1690f.tar.gz ampache-c3bcd9b2bd77e642f201838bc1cb17ec56d1690f.tar.bz2 ampache-c3bcd9b2bd77e642f201838bc1cb17ec56d1690f.zip |
genre browsing should work now
Diffstat (limited to 'upload.php')
-rw-r--r-- | upload.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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'])) { |