aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-11-18 15:35:11 -0200
committerSilvio <silvio@devlet.com.br>2011-11-18 15:35:11 -0200
commit2f3851e46b24afbd33fba822a06faf621afc757e (patch)
tree304dd21f7bf74862174a59f1f19b0843698ee304
parent75d76aa13425c1873dbf6078854c3305df3dae34 (diff)
downloadimagecache_auto-2f3851e46b24afbd33fba822a06faf621afc757e.tar.gz
imagecache_auto-2f3851e46b24afbd33fba822a06faf621afc757e.tar.bz2
Minor fix
-rw-r--r--imagecache_auto.inc2
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;