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:
parent
5ee086bbfe
commit
63da7f0074
|
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue