diff --git a/backend/Playlist.php b/backend/Playlist.php index 687dcb86b..07bd018da 100644 --- a/backend/Playlist.php +++ b/backend/Playlist.php @@ -364,9 +364,6 @@ class Playlist { { $values = array("filename" => $fname); $pl_id = Playlist::Insert($values); - if (PEAR::isError($pl_id)) { - return $pl_id; - } $this->id = $pl_id; return $this->id; } diff --git a/backend/tests/SchedulerTests.php b/backend/tests/SchedulerTests.php index 8991c092f..0e2eb6efd 100644 --- a/backend/tests/SchedulerTests.php +++ b/backend/tests/SchedulerTests.php @@ -11,8 +11,8 @@ class SchedulerTests extends PHPUnit_TestCase { global $CC_CONFIG, $CC_DBC; // Clear the files table - $sql = "DELETE FROM ".$CC_CONFIG["filesTable"]; - $CC_DBC->query($sql); + //$sql = "DELETE FROM ".$CC_CONFIG["filesTable"]; + //$CC_DBC->query($sql); // Add a file $values = array("filepath" => dirname(__FILE__)."/test10001.mp3"); @@ -23,8 +23,8 @@ class SchedulerTests extends PHPUnit_TestCase { $this->storedFile2 = StoredFile::Insert($values, false); // Clear the schedule table - $sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"]; - $CC_DBC->query($sql); + //$sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"]; + //$CC_DBC->query($sql); } function testDateToId() {