From b1b7998a0f9a6438725fb574e63e27859a6bd2e6 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 9 Sep 2007 21:07:45 +0000 Subject: few minor bug fixes, and some more tweaks for localplay --- lib/class/localplay.class.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'lib/class/localplay.class.php') diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index e048dd17..d9d19841 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -227,19 +227,7 @@ class Localplay { // If we can't even load it no sense in going on if (!isset($localplay->_player)) { return false; } - $preferences = $localplay->get_preferences(); - - foreach ($preferences as $preference) { - $name = 'localplay_' . $type . '_' . $preference['name']; - /* Check for existing record */ - $sql = "SELECT `id` FROM `preference` WHERE `name` = '" . Dba::escape($name) . "'"; - $db_results = Dba::query($sql); - - if (!Dba::num_rows($db_results)) { return false; } - - } // end foreach - - return true; + return $localplay->_player->is_installed(); } // is_enabled -- cgit