summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-03-14 06:26:05 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-03-14 06:26:05 +0000
commit171c8d235a172d699209ade7d9e7ae71aecce6a3 (patch)
tree138c5c5b3387125956b27b8a647ebb77b5d2d59b
parentd78c207f76c8ae57744300611519f4c85c2c34c4 (diff)
downloadampache-171c8d235a172d699209ade7d9e7ae71aecce6a3.tar.gz
ampache-171c8d235a172d699209ade7d9e7ae71aecce6a3.tar.bz2
ampache-171c8d235a172d699209ade7d9e7ae71aecce6a3.zip
Don't try to insert the key field, since it doesn't exist in the catalog table.
-rw-r--r--lib/class/catalog.class.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index f9b3325b..47572777 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -295,11 +295,10 @@ class Catalog extends database_object {
$rename_pattern = Dba::escape($data['rename_pattern']);
$sort_pattern = Dba::escape($data['sort_pattern']);
$gather_types = 'NULL';
- $key = $data['key'] ? '\'' . Dba::escape($data['key']) . '\'' : 'NULL';
// 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)";
+ $sql = "INSERT INTO `catalog` (`name`,`path`,`catalog_type`,`rename_pattern`,`sort_pattern`,`gather_types`) " .
+ "VALUES ('$name','$path','$catalog_type','$rename_pattern','$sort_pattern',$gather_types)";
$db_results = Dba::write($sql);
$insert_id = Dba::insert_id();