fix old cookie causing errors loading layouts
This commit is contained in:
parent
cb70a3627f
commit
5e953cefea
|
@ -78,7 +78,7 @@ if ( isset($_COOKIE['zmMontageLayout']) ) {
|
||||||
$options = array();
|
$options = array();
|
||||||
$Layout = '';
|
$Layout = '';
|
||||||
$Positions = '';
|
$Positions = '';
|
||||||
if ( $layout_id ) {
|
if ( $layout_id and is_numeric($layout_id) and isset($layoutsById[$layout_id]) ) {
|
||||||
$Layout = $layoutsById[$layout_id];
|
$Layout = $layoutsById[$layout_id];
|
||||||
$Positions = json_decode( $Layout->Positions(), true );
|
$Positions = json_decode( $Layout->Positions(), true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue