aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcapo <capo@riseup.net>2014-01-12 23:45:56 +0100
committercapo <capo@riseup.net>2014-01-12 23:45:56 +0100
commit86ddb910c0da573436f3f80e4718cdd37f9f3acc (patch)
tree340227146036a734cc5a38c63ddfdc92f9be9ee4
parente30ab4e309edcad41c2fef9147db1b1325497984 (diff)
downloadelgg-86ddb910c0da573436f3f80e4718cdd37f9f3acc.tar.gz
elgg-86ddb910c0da573436f3f80e4718cdd37f9f3acc.tar.bz2
little refactoring
-rw-r--r--actions/simplepie/save_group_feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/simplepie/save_group_feed.php b/actions/simplepie/save_group_feed.php
index 556372f..8308616 100644
--- a/actions/simplepie/save_group_feed.php
+++ b/actions/simplepie/save_group_feed.php
@@ -8,7 +8,7 @@ if (!simplepie_is_url($feed_url)) {
forward(REFERER);
}
-if (!$group || !$group->canEdit() || !elgg_instanceof($group, 'group')) {
+if (!elgg_instanceof($group, 'group') || !group->canEdit()) {
forward(REFERER);
}
$group->feed_url = $feed_url;