diff --git a/js/jquery.multiDialog.js b/js/jquery.multiDialog.js index 0a4ecd5..cd7313a 100644 --- a/js/jquery.multiDialog.js +++ b/js/jquery.multiDialog.js @@ -792,7 +792,7 @@ $.extend( MultiDialog.prototype, { }, _getPositionInfo: function( key ) { - if ( this.options.gallery.enabled && this.group.length > 0 && this.options.gallery.showPositionInfo[ key ] && !this.isLoading ) { + if ( this.options.gallery.enabled && this.group && this.group.length > 0 && this.options.gallery.showPositionInfo[ key ] && !this.isLoading ) { return "" + this.options.gallery.strings.position.replace( "{index}", this.index + 1 ).replace( "{amount}", this.group.length ) + ""; }