From 5e953cefeaa8e8133e8d16dddfe4f6aec132dd57 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 1 Dec 2017 12:30:07 -0800 Subject: [PATCH] fix old cookie causing errors loading layouts --- web/skins/classic/views/montage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/montage.php b/web/skins/classic/views/montage.php index ea2e0a588..30f7d0420 100644 --- a/web/skins/classic/views/montage.php +++ b/web/skins/classic/views/montage.php @@ -78,7 +78,7 @@ if ( isset($_COOKIE['zmMontageLayout']) ) { $options = array(); $Layout = ''; $Positions = ''; -if ( $layout_id ) { +if ( $layout_id and is_numeric($layout_id) and isset($layoutsById[$layout_id]) ) { $Layout = $layoutsById[$layout_id]; $Positions = json_decode( $Layout->Positions(), true ); }