diff --git a/application/models/Survey.php b/application/models/Survey.php index 94efc53c6b4..77847e514ea 100644 --- a/application/models/Survey.php +++ b/application/models/Survey.php @@ -348,7 +348,11 @@ public function getCurrentLanguageSettings() } elseif (isset($this->languagesettings[$this->language])) { return $this->languagesettings[$this->language]; } else { - throw new Exception('Survey language not found - looked for ' . App()->language . ' and ' . $this->language); + $errorString = 'Survey language not found - looked for ' . App()->language; + if ($this->language != App()->language) { + $errorString .= ' and ' . $this->language; + } + throw new Exception($errorString); } }