wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / modules / guest / action-themes.php
index 54e124eb479d3189dd1725e0d9e0741e141be24d..6027284df27cbd8ab555f7517918e771378aa026 100644 (file)
@@ -39,9 +39,9 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 }
 
 // Load all active designs (or all if admin)
-$WHERE = ""; $OUT = "";
-if (!IS_ADMIN()) $WHERE = " WHERE theme_active='Y'";
-$result_themes = SQL_QUERY("SELECT theme_path FROM "._MYSQL_PREFIX."_themes".$WHERE, __FILE__, __LINE__);
+$whereStatement = ""; $OUT = "";
+if (!IS_ADMIN()) $whereStatement = " WHERE theme_active='Y'";
+$result_themes = SQL_QUERY("SELECT theme_path FROM "._MYSQL_PREFIX."_themes".$whereStatement, __FILE__, __LINE__);
 $num_themes = SQL_NUMROWS($result_themes);
 
 if ($num_themes > 1)