aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-11-18 15:29:51 -0200
committerSilvio <silvio@devlet.com.br>2011-11-18 15:29:51 -0200
commit75d76aa13425c1873dbf6078854c3305df3dae34 (patch)
tree410128c71a2741206b12afda0b5e3dc0ee43645e
parent7c275a1f2b3043e057dc6de76b3b050ab8602da7 (diff)
downloadimagecache_auto-75d76aa13425c1873dbf6078854c3305df3dae34.tar.gz
imagecache_auto-75d76aa13425c1873dbf6078854c3305df3dae34.tar.bz2
Type conversion
-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)),