Skip to content

Commit 5fcc2a9

Browse files
committed
Ensure user lang is also not the default lang
1 parent c055d38 commit 5fcc2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/main_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function display()
9191

9292
// If no rules were found, it may be because no rules exist in the current user's
9393
// language, so let's look for rules in the board's default language as a fallback.
94-
if (empty($entities))
94+
if (empty($entities) && $this->lang->get_used_language() !== $this->config['default_lang'])
9595
{
9696
$entities = $this->rule_operator->get_rules($this->config['default_lang']);
9797
}

0 commit comments

Comments
 (0)