diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-01 05:45:22 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-01 05:45:22 +0000 |
commit | f79eb18331b8694ef8cfe90ca71b8f543b63e872 (patch) | |
tree | e110fc93af97dc23fdbaa8d2d30249a0e75d4505 /lib | |
parent | 7b0b142202fde91770e2840e3afc7ba80fe656f1 (diff) | |
download | ampache-f79eb18331b8694ef8cfe90ca71b8f543b63e872.tar.gz ampache-f79eb18331b8694ef8cfe90ca71b8f543b63e872.tar.bz2 ampache-f79eb18331b8694ef8cfe90ca71b8f543b63e872.zip |
fixed the catalog build
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/catalog.class.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 962e9dc0..570fe272 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -156,12 +156,14 @@ class Catalog { } $name = Dba::escape($data['name']); - $catalog_type = Dba::escape($data['catalog_type']); + $catalog_type = Dba::escape($data['type']); $rename_pattern = Dba::escape($data['rename_pattern']); $sort_pattern = Dba::escape($data['sort_pattern']); - $gather_types = Dba::escape($data['gather_types']); + $gather_types = ' '; //FIXME $key = Dba::escape($data['key']); + if (!$key) { $key = ' '; } //FIXME + // Ok we're good to go ahead and insert this record $sql = "INSERT INTO `catalog` (`name`,`path`,`catalog_type`,`rename_pattern`,`sort_pattern`,`gather_types`,`key`) " . "VALUES ('$name','$path','$catalog_type','$rename_pattern','$sort_pattern','$gather_types','$key')"; |