if ((is_array($SQLs) && (sizeof($SQLs) > 0)))
{
// Run SQL commands...
- foreach ($SQLs as $sql)
- {
+ foreach ($SQLs as $sql) {
+ // Trim spaces away which we don't need
$sql = trim($sql);
- if (!empty($sql))
- {
+
+ // Is there still an SQL query?
+ if (!empty($sql)) {
// Run SQL command
$result = SQL_QUERY($sql, __FILE__, __LINE__, false);
}
}
// Remove cache file(s) if extension is active
- if (EXT_IS_ACTIVE("cache"))
- {
+ if (EXT_IS_ACTIVE("cache")) {
// Remove cache filer
if ($CACHE->cache_file("extensions", true)) $CACHE->cache_destroy();
if ($CACHE->cache_file("mod_reg", true)) $CACHE->cache_destroy();