From f79eb18331b8694ef8cfe90ca71b8f543b63e872 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 1 Jun 2007 05:45:22 +0000 Subject: fixed the catalog build --- lib/class/catalog.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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')"; -- cgit