summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-04 00:56:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-04 00:56:23 +0000
commit56d353c721997906098a137b1dcd62e661f917c2 (patch)
tree4b4e27ca2cb991685ffcd1ed31298fa23932cc6e /modules
parentdb538c82508fd04feab0d310ee2d0def72d479c8 (diff)
downloadbrdo-56d353c721997906098a137b1dcd62e661f917c2.tar.gz
brdo-56d353c721997906098a137b1dcd62e661f917c2.tar.bz2
#989886 by bfroehle: Fixed _system_date_format_types_build improper use of in_array()
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.module2
1 files changed, 1 insertions, 1 deletions
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'] = '';