summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wehner2012-01-17 17:03:05 (GMT)
committer Daniel Wehner2012-01-17 17:03:05 (GMT)
commit0b5581ec79b613833d009d8ecb1e1b6f99f06db4 (patch)
treecc7f0c83ba654788e8be4a2ca3f890e522f32151
parent0c4c07f9ef558127f91cd4ac98fa92a3df4f728b (diff)
don't call rdf_get_namespaces if the module doesn't exist
-rw-r--r--modules/node/views_plugin_row_node_rss.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/node/views_plugin_row_node_rss.inc b/modules/node/views_plugin_row_node_rss.inc
index a933ff8..189ff1f 100644
--- a/modules/node/views_plugin_row_node_rss.inc
+++ b/modules/node/views_plugin_row_node_rss.inc
@@ -135,11 +135,10 @@ class views_plugin_row_node_rss extends views_plugin_row {
if (!empty($node->rss_namespaces)) {
$this->view->style_plugin->namespaces = array_merge($this->view->style_plugin->namespaces, $node->rss_namespaces);
- } else {
+ } else if (module_exists('rdf')) {
$this->view->style_plugin->namespaces = array_merge($this->view->style_plugin->namespaces, rdf_get_namespaces());
}
-
// Hide the links if desired.
if (!$this->options['links']) {
hide($build['links']);