From 75d76aa13425c1873dbf6078854c3305df3dae34 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 18 Nov 2011 15:29:51 -0200 Subject: Type conversion --- imagecache_auto.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imagecache_auto.module b/imagecache_auto.module index e022fa5..40b62fd 100644 --- a/imagecache_auto.module +++ b/imagecache_auto.module @@ -39,8 +39,8 @@ function imagecache_auto_menu() { function imagecache_auto() { include_once('imagecache_auto.inc'); - $max_width = variable_get('imagecache_auto_max_width', '10000'); - $max_height = variable_get('imagecache_auto_max_height', '10000'); + $max_width = (int) variable_get('imagecache_auto_max_width', '10000'); + $max_height = (int) variable_get('imagecache_auto_max_height', '10000'); $args = func_get_args(); $options = array( 'width' => (int) check_plain(array_shift($args)), -- cgit v1.2.3