diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-13 07:38:40 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-13 07:38:40 +0000 |
commit | 2ff28d9f26856c19d6ec45c7e9d713ba4a35d9fb (patch) | |
tree | 04fb8508cc19e5fc7bf6c04e2974a9e45147928a /lib/class/democratic.class.php | |
parent | 591ca8e918bd59cff7301df830e86d2633c8b84a (diff) | |
download | ampache-2ff28d9f26856c19d6ec45c7e9d713ba4a35d9fb.tar.gz ampache-2ff28d9f26856c19d6ec45c7e9d713ba4a35d9fb.tar.bz2 ampache-2ff28d9f26856c19d6ec45c7e9d713ba4a35d9fb.zip |
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
Diffstat (limited to 'lib/class/democratic.class.php')
-rw-r--r-- | lib/class/democratic.class.php | 6 |
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 |