diff options
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r-- | lib/class/catalog.class.php | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 43becdac..57186865 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -1212,24 +1212,12 @@ class Catalog { flush(); } - /* Add this file to the list for removal from the db */ - $dead_files[] = $results; - } //if error - - } //while gettings songs - - /* Incase there's been a snafo with a mount point on something - * don't actually delete from DB here, simply disable and list - */ - if (count($dead_files)) { - foreach ($dead_files as $data) { - - $sql = "DELETE FROM song WHERE id='$data->id'"; + $sql = "DELETE FROM song WHERE id='" . $results->id . "'"; $db_results = mysql_query($sql, dbh()); - } //end foreach + } //if error - } // end if dead files + } //while gettings songs /* Step two find orphaned Arists/Albums * This finds artists and albums that no |