From 195f1f802f2e38b16307af1403be241584e21036 Mon Sep 17 00:00:00 2001 From: webchick Date: Sun, 30 Sep 2012 20:50:34 -0400 Subject: [PATCH] Issue #1798302 by alippai: Fixed Remove unnecessary join. --- core/modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/system/system.module b/core/modules/system/system.module index bfa91db66da..1077bc0b4ae 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -3997,7 +3997,7 @@ function _system_date_formats_build() { } // Get custom formats added to the database by the end user. - $result = db_query('SELECT df.dfid, df.format, df.type, df.locked, dfl.language FROM {date_formats} df LEFT JOIN {date_format_type} dft ON df.type = dft.type LEFT JOIN {date_format_locale} dfl ON df.format = dfl.format AND df.type = dfl.type ORDER BY df.type, df.format'); + $result = db_query('SELECT df.dfid, df.format, df.type, df.locked, dfl.language FROM {date_formats} df LEFT JOIN {date_format_locale} dfl ON df.format = dfl.format AND df.type = dfl.type ORDER BY df.type, df.format'); foreach ($result as $record) { // If this date type isn't set, initialise the array. if (!isset($date_formats[$record->type])) {