Fix unsetting scale, width and height when generating url to zms. width and height are normally pixels but maybe someday could be percent.

This commit is contained in:
Isaac Connor 2020-08-10 13:59:47 -04:00
parent 5ee086bbfe
commit 63da7f0074
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ class Monitor extends ZM_Object {
if ( ZM_RAND_STREAM ) { if ( ZM_RAND_STREAM ) {
$args['rand'] = time(); $args['rand'] = time();
} }
foreach ( array('scale','height','width') as $int_arg ) { foreach ( array('scale') as $int_arg ) {
if ( isset($args[$int_arg]) and (!is_int($args[$int_arg]) or !$args[$int_arg] ) ) { if ( isset($args[$int_arg]) and (!is_numeric($args[$int_arg]) or !$args[$int_arg] ) ) {
unset($args[$int_arg]); unset($args[$int_arg]);
} }
} }