diff options
-rw-r--r-- | lib/private/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 2f2d7fb9ed3..5db33776173 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -365,9 +365,9 @@ class OC_Util { if (!in_array($path, self::$scripts)) { // load javascript translations if it is the first time an app's // script is loaded. - if (!in_array($application, self::$loadedScriptTranslations)) { + if (!isset(self::$loadedScriptTranslations[$application])) { self::addTranslations($application); - self::$loadedScriptTranslations[] = $application; + self::$loadedScriptTranslations[$application] = true; } self::$scripts[] = $path; } |