summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/js/l10n_client.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gallery/js/l10n_client.js b/modules/gallery/js/l10n_client.js
index 58032a48..f0aff0b6 100644
--- a/modules/gallery/js/l10n_client.js
+++ b/modules/gallery/js/l10n_client.js
@@ -86,7 +86,10 @@ jQuery.extend(Gallery, {
// Get a string from the DOM tree
this.getString = function(index, type) {
- return l10n_client_data[index][type];
+ if (index < l10n_client_data.length) {
+ return l10n_client_data[index][type];
+ }
+ return "";
};
// Set a string in the DOM tree