From 2f3851e46b24afbd33fba822a06faf621afc757e Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 18 Nov 2011 15:35:11 -0200 Subject: Minor fix --- imagecache_auto.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagecache_auto.inc b/imagecache_auto.inc index 1b0fe7d..c0a28ef 100644 --- a/imagecache_auto.inc +++ b/imagecache_auto.inc @@ -41,7 +41,7 @@ function imagecache_auto_create_preset($options) { // Check if maximum number of presets was reached. $max_presets = (int) variable_get('imagecache_auto_max_presets', '250'); - if (imagecache_auto_count_presets() > $max_presets + 1) { + if (imagecache_auto_count_presets() + 1 > $max_presets) { $message = 'Maximum number of imagecache presets reached. Please consider increasing the max number of presets.'; watchdog('imagecache_auto', $message, array(), WATCHDOG_ERROR); return; -- cgit v1.2.3