summaryrefslogtreecommitdiffstats
path: root/lib/class/democratic.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/democratic.class.php')
-rw-r--r--lib/class/democratic.class.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/class/democratic.class.php b/lib/class/democratic.class.php
index f8008035..df323f62 100644
--- a/lib/class/democratic.class.php
+++ b/lib/class/democratic.class.php
@@ -438,6 +438,12 @@ class Democratic extends tmpPlaylist {
"VALUES ('$name','$base','$cool','$level','$user','$default')";
$db_results = Dba::query($sql);
+ if ($db_results) {
+ $insert_id = Dba::insert_id();
+ parent::create($insert_id,'vote','song');
+ }
+
+
return $db_results;
} // create