summaryrefslogtreecommitdiffstats
path: root/lib/class/playlist.class.php
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2009-03-13 04:43:14 +0000
committermomo-i <momo-i@ampache>2009-03-13 04:43:14 +0000
commit82edd2e93b89300b60a56d92bf0d4922afe9e7c9 (patch)
tree7af69b644dbae58dd9b3dcc66a94de9277201fa1 /lib/class/playlist.class.php
parentfbad7f92c1dab4fb58d109491a5cf3a738e756ff (diff)
downloadampache-82edd2e93b89300b60a56d92bf0d4922afe9e7c9.tar.gz
ampache-82edd2e93b89300b60a56d92bf0d4922afe9e7c9.tar.bz2
ampache-82edd2e93b89300b60a56d92bf0d4922afe9e7c9.zip
Fixed: import m3u insert error
Added: show import result
Diffstat (limited to 'lib/class/playlist.class.php')
-rw-r--r--lib/class/playlist.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/playlist.class.php b/lib/class/playlist.class.php
index f3e31c56..ac409255 100644
--- a/lib/class/playlist.class.php
+++ b/lib/class/playlist.class.php
@@ -356,9 +356,9 @@ class Playlist extends database_object {
$user = Dba::escape($GLOBALS['user']->id);
$date = time();
- $sql = "INSERT INTO `playlist` (`name`,`user`,`type`,`genre`,`date`) " .
- " VALUES ('$name','$user','$type','0','$date')";
- $db_results = Dba::query($sql);
+ $sql = "INSERT INTO `playlist` (`name`,`user`,`type`,`date`) " .
+ " VALUES ('$name','$user','$type','$date')";
+ $db_results = Dba::write($sql);
$insert_id = Dba::insert_id();