aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-11-21 13:54:59 -0200
committerSilvio <silvio@devlet.com.br>2011-11-21 13:54:59 -0200
commit97adf947afbf8ad31c0c31bc3b3f77098d3e8f4e (patch)
treef4ec2fa6c96119ccaa08a41fa7606488676a0e86
parent4b8b8d4ef2b494435eefaf6e3ad6397cf8b69719 (diff)
downloadimagecache_auto-97adf947afbf8ad31c0c31bc3b3f77098d3e8f4e.tar.gz
imagecache_auto-97adf947afbf8ad31c0c31bc3b3f77098d3e8f4e.tar.bz2
Coding standard
-rw-r--r--imagecache_auto.inc2
-rw-r--r--imagecache_auto.module2
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();
}