diff options
author | Silvio <silvio@devlet.com.br> | 2011-11-18 15:35:11 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2011-11-18 15:35:11 -0200 |
commit | 2f3851e46b24afbd33fba822a06faf621afc757e (patch) | |
tree | 304dd21f7bf74862174a59f1f19b0843698ee304 | |
parent | 75d76aa13425c1873dbf6078854c3305df3dae34 (diff) | |
download | imagecache_auto-2f3851e46b24afbd33fba822a06faf621afc757e.tar.gz imagecache_auto-2f3851e46b24afbd33fba822a06faf621afc757e.tar.bz2 |
Minor fix
-rw-r--r-- | imagecache_auto.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |