diff --git a/app/controllers/vlogs_controller.rb b/app/controllers/vlogs_controller.rb index 1af4f8c..dd63ad0 100644 --- a/app/controllers/vlogs_controller.rb +++ b/app/controllers/vlogs_controller.rb @@ -24,7 +24,7 @@ class VlogsController < ApplicationController end def widget - video = VLog.all.filter_by_widget_categories.sample(1).first + vlog = VLog.all.filter_by_widget_categories.sample(1).first if vlog.type == "upload" && !vlog.v_log_video.nil? video = "" elsif vlog.type == "youtube" && !vlog.youtube_link.nil?