Fix 500 error on no channel specified

This commit is contained in:
Igor Antonov
2017-02-27 16:55:21 +03:00
parent a414136510
commit 61f4367b6f

View File

@@ -230,7 +230,7 @@ private
].flatten.find{|v| v.present?}
# Channel name '-' or empty '' is reserved for NOT notifying
return [] if val.to_s == ''
return [] if val.nil? or val.to_s == ''
return [] if val.to_s == '-'
return val.split(",") if val.is_a? String
val