From 56d353c721997906098a137b1dcd62e661f917c2 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 4 Jan 2011 00:56:23 +0000 Subject: #989886 by bfroehle: Fixed _system_date_format_types_build improper use of in_array() --- modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index e0fdbf74a..b5dfc5498 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -3661,7 +3661,7 @@ function _system_date_format_types_build() { // Get custom formats added to the database by the end user. $result = db_query('SELECT dft.type, dft.title, dft.locked FROM {date_format_type} dft ORDER BY dft.title'); foreach ($result as $record) { - if (!in_array($record->type, $types)) { + if (!isset($types[$record->type])) { $type = array(); $type['is_new'] = FALSE; $type['module'] = ''; -- cgit v1.2.3