From 543d8b720857c8dc6ec4d85c4d813b3638e7046f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Aug 2004 05:44:11 +0000 Subject: - Patch #9972 by njivy: modified node_feed() for the instances where locale is not enabled. Without this patch, reset(array_keys($languages['name'])) throws an error. --- modules/node.module | 2 +- modules/node/node.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/node.module b/modules/node.module index d619b0063..f7ccc13f4 100644 --- a/modules/node.module +++ b/modules/node.module @@ -995,7 +995,7 @@ function node_block($op = 'list', $delta = 0) { */ function node_feed($nodes = 0, $channel = array()) { global $base_url; - $languages = (function_exists('locale')) ? locale_supported_languages() : array(); + $languages = (function_exists('locale')) ? locale_supported_languages() : array('name' => array()); if (!$nodes) { $nodes = db_query_range('SELECT nid FROM {node} WHERE promote = 1 AND status = 1 ORDER BY created DESC', 0, 15); diff --git a/modules/node/node.module b/modules/node/node.module index d619b0063..f7ccc13f4 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -995,7 +995,7 @@ function node_block($op = 'list', $delta = 0) { */ function node_feed($nodes = 0, $channel = array()) { global $base_url; - $languages = (function_exists('locale')) ? locale_supported_languages() : array(); + $languages = (function_exists('locale')) ? locale_supported_languages() : array('name' => array()); if (!$nodes) { $nodes = db_query_range('SELECT nid FROM {node} WHERE promote = 1 AND status = 1 ORDER BY created DESC', 0, 15); -- cgit v1.2.3