aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--imagecache_auto.module4
1 files 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)),