whitespace corrections and ensure that options[width] and options[height] are defined

This commit is contained in:
Isaac Connor 2017-03-20 12:10:28 -04:00
parent eba6cec7a1
commit 70246ce55a
1 changed files with 42 additions and 38 deletions

View File

@ -94,8 +94,12 @@ if ( isset($_COOKIE['zmMontageLayout']) )
$options = array();
if ( isset($_COOKIE['zmMontageWidth']) and $_COOKIE['zmMontageWidth'] )
$options['width'] = $_COOKIE['zmMontageWidth'];
else
$options['width'] = '';
if ( isset($_COOKIE['zmMontageHeight']) and $_COOKIE['zmMontageHeight'] )
$options['height'] = $_COOKIE['zmMontageHeight'];
else
$options['height'] = '';
if ( $scale )
$options['scale'] = $scale;