aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;