Permalink
Browse files

Fix editing playlists when user has no favorites (thanks starkaudio f…

…or the QA ;)
  • Loading branch information...
1 parent 0124ee4 commit 56094e81c53300602e9d4bf071fbd3bcb6bb8ae4 @sudara sudara committed Mar 23, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/controllers/playlists_controller.rb
  2. +1 −1 app/views/playlists/_playlist_sources.html.erb
@@ -100,7 +100,7 @@ def edit
:limit => 10,
:per_page => 10,
:page => params[:favorites_page]
- )
+ ) rescue nil
if request.xhr?
render :partial => 'your_stuff.html.erb' if params[:uploads_page]
@@ -15,7 +15,7 @@
<%= render :partial => 'your_listens' %>
- <%= render :partial => 'your_favorites'%>
+ <%= render :partial => 'your_favorites' if @favorites%>
</div>

0 comments on commit 56094e8

Please sign in to comment.