From 1f65eee3fc9139a5d61b3186cf8f0fd107b08812 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 9 Mar 2015 19:19:41 +0000 Subject: [PATCH] Check that getApplicationByName() got something before using it, avoids hidden error loading sideboxes for apps with no tab --- phpgwapi/js/framework/fw_desktop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/framework/fw_desktop.js b/phpgwapi/js/framework/fw_desktop.js index 3691a025c0..a5496cc23c 100644 --- a/phpgwapi/js/framework/fw_desktop.js +++ b/phpgwapi/js/framework/fw_desktop.js @@ -351,7 +351,7 @@ if (typeof _app == 'string') _app = this.getApplicationByName(_app); //Set the sidebox width if a application specific sidebox width is set - if (_app == _app.parentFw.activeApp && _app.sideboxWidth !== false ) + if (_app && _app == _app.parentFw.activeApp && _app.sideboxWidth !== false ) { this.splitterUi.constraints[0].size = _app.sideboxWidth; }