From 3e190494ee28af8d27d1b37993d10c110ee7d335 Mon Sep 17 00:00:00 2001
From: Kevin Jardine
Date: Wed, 4 Apr 2012 12:17:39 +0200
Subject: hide entity_admins bit if the entity_admins plugin is not active
---
views/default/forms/event_calendar/edit.php | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/views/default/forms/event_calendar/edit.php b/views/default/forms/event_calendar/edit.php
index 713fb9abc..260e8afe0 100644
--- a/views/default/forms/event_calendar/edit.php
+++ b/views/default/forms/event_calendar/edit.php
@@ -265,10 +265,12 @@ if($event_calendar_hide_access == 'yes') {
$body .= elgg_view("input/access",array('name' => 'access_id','value'=>$access));
$body .= '
';
}
-$body .= elgg_echo('event_calendar:share_ownership:label');
-$body .= '
';
-$body .= elgg_echo('event_calendar:share_ownership:description');
-$body .= elgg_view('input/entity_admins_dropdown',array('entity'=>$event));
+if (elgg_plugin_exists('entity_admins')) {
+ $body .= elgg_echo('event_calendar:share_ownership:label');
+ $body .= '
';
+ $body .= elgg_echo('event_calendar:share_ownership:description');
+ $body .= elgg_view('input/entity_admins_dropdown',array('entity'=>$event));
+}
$body .= '';
if ($event_calendar_region_display == 'yes' || $event_calendar_type_display == 'yes' || $event_calendar_fewer_fields != 'yes') {
--
cgit v1.2.3