diff options
-rw-r--r-- | imagecache_auto.inc | 2 | ||||
-rw-r--r-- | imagecache_auto.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/imagecache_auto.inc b/imagecache_auto.inc index 788b195..ef751a7 100644 --- a/imagecache_auto.inc +++ b/imagecache_auto.inc @@ -135,7 +135,7 @@ function imagecache_auto_presets() { * Number of existing presets. */ function imagecache_auto_count_presets() { - $query = 'SELECT COUNT(presetid) AS count FROM imagecache_preset'; + $query = 'SELECT COUNT(presetid) AS count FROM {imagecache_preset}'; $result = db_query($query); $count = db_fetch_object($result); return $count->count; diff --git a/imagecache_auto.module b/imagecache_auto.module index 64d6fc5..b25028a 100644 --- a/imagecache_auto.module +++ b/imagecache_auto.module @@ -51,7 +51,7 @@ function imagecache_auto() { if ($options['width'] == NULL || $options['width'] < 0 || $options['width'] > $max_width) { drupal_not_found(); } - else if ($options['height'] == NULL || $options['height'] < 0 || $options['height'] > $max_height) { + elseif ($options['height'] == NULL || $options['height'] < 0 || $options['height'] > $max_height) { drupal_not_found(); } |