summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index 2fa976b3..d463ed8d 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -32,7 +32,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', '
$ionicPlatform.registerBackButtonAction(function (e) {
e.preventDefault();
- if ($scope.modal && $scope.modal.isShown())
+ if ($scope.modal !=undefined && $scope.modal.isShown())
{
// switch off awake, as liveview is finished
ZMDataModel.zmDebug("Modal is open, closing it");