CC-2558 : Delete all files from disk, only allow admins to delete

This commit is contained in:
Naomi Aro 2011-07-19 11:50:49 +02:00
parent ba0458c442
commit 5a9bf18ccc

View file

@ -319,7 +319,12 @@ class StoredFile {
Playlist::DeleteFileFromAllPlaylists($this->getId()); Playlist::DeleteFileFromAllPlaylists($this->getId());
$this->_file->delete(); $this->_file->delete();
return $res; if (isset($res)) {
return $res;
}
else {
return false;
}
} }
/** /**