From 97adf947afbf8ad31c0c31bc3b3f77098d3e8f4e Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 21 Nov 2011 13:54:59 -0200 Subject: Coding standard --- imagecache_auto.inc | 2 +- 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(); } -- cgit v1.2.3