summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-07-13 21:43:44 -0700
committerStan Hu <stanhu@gmail.com>2017-07-13 21:43:44 -0700
commite6cd2353a4123af3183188b200233a32ea7adbdd (patch)
treec3584e0f9573cb2d0413d7db21f8b29eb3a2d3af
parent0e23d1a74ff6283076e9a1d74eccfc5ba6419fd8 (diff)
downloadgitlab-ce-e6cd2353a4123af3183188b200233a32ea7adbdd.tar.gz
Handle nil BroadcastMessage.current in the views
-rw-r--r--app/views/layouts/_broadcast.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_broadcast.html.haml b/app/views/layouts/_broadcast.html.haml
index bcd2f03e83c..e2dbdcbb939 100644
--- a/app/views/layouts/_broadcast.html.haml
+++ b/app/views/layouts/_broadcast.html.haml
@@ -1,2 +1,2 @@
-- BroadcastMessage.current.each do |message|
+- BroadcastMessage.current&.each do |message|
= broadcast_message(message)