aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/html_promo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/html_promo.rb')
-rw-r--r--lib/sisu/v3/html_promo.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v3/html_promo.rb b/lib/sisu/v3/html_promo.rb
index a2edea47..387da244 100644
--- a/lib/sisu/v3/html_promo.rb
+++ b/lib/sisu/v3/html_promo.rb
@@ -98,7 +98,7 @@ module SiSU_HTML_Promo
elsif @flag[:sk] #promo set in associated skin
promo_array=@vz.widget_promo
elsif @flag[:rc] #promo set in rc file
- promo_array=if @rc['html']['promo'].class==String
+ promo_array=if @rc['html']['promo'].is_a?(String)
@rc['html']['promo'].split(/[,;]\s*/)
else @rc['html']['promo']
end
@@ -406,7 +406,7 @@ WOK
adverts << output_form_select(type,id)
else
if defined? @ad[:promo][category][type][id] \
- and @ad[:promo][category][type][id].class==Array \
+ and @ad[:promo][category][type][id].is_a?(Array) \
and @ad[:promo][category][type][id].length > 0
adverts << @ad[:promo][category][type][id].join("\n")
end