From c27663917fadccbfb7f7613e5e95c8e0f30f5d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 2 Apr 2010 13:34:27 +0200 Subject: [PATCH] Do not try to play with parent if there is none. --- js/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/navigation.js b/js/navigation.js index 22afbb6cf..2932105a2 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -88,7 +88,7 @@ function PMA_setFrameSize() { pma_navi_width = PMA_getCookie('pma_navi_width'); //alert('from cookie: ' + typeof(pma_navi_width) + ' : ' + pma_navi_width); - if (pma_navi_width != null) { + if (pma_navi_width != null && parent.document != document) { if (parent.text_dir == 'ltr') { parent.document.getElementById('mainFrameset').cols = pma_navi_width + ',*'; } else {