From 2ff28d9f26856c19d6ec45c7e9d713ba4a35d9fb Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 13 Mar 2008 07:38:40 +0000 Subject: minor change to tag gather, some speed improvements on the catalog verify and more changes to democratic play, will not work currently due to missing db update that needs more testing --- lib/class/democratic.class.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/class/democratic.class.php') 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 -- cgit