aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-08 16:41:57 -0700
committerfriendica <info@friendica.com>2013-06-08 16:41:57 -0700
commitd76ec28f7900c0c5fcf2d52bda3476de59b8fb1d (patch)
treebf0bb1a1952a39d83fa1c92d6b568dcd75085777 /mod
parent80be209bce5c2a6fbe8cd00dcaf4b1dfbcdfe2a6 (diff)
downloadvolse-hubzilla-d76ec28f7900c0c5fcf2d52bda3476de59b8fb1d.tar.gz
volse-hubzilla-d76ec28f7900c0c5fcf2d52bda3476de59b8fb1d.tar.bz2
volse-hubzilla-d76ec28f7900c0c5fcf2d52bda3476de59b8fb1d.zip
import requires a valid account
Diffstat (limited to 'mod')
-rw-r--r--mod/import.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/import.php b/mod/import.php
index bf55b3104..1bc61da43 100644
--- a/mod/import.php
+++ b/mod/import.php
@@ -9,6 +9,9 @@ require_once('include/identity.php');
function import_post(&$a) {
+ if(! $a->get_account()) {
+ return;
+ }
$data = null;
$seize = ((x($_REQUEST,'make_primary')) ? intval($_REQUEST['make_primary']) : 0);
@@ -328,6 +331,10 @@ function import_post(&$a) {
function import_content(&$a) {
+ if(! $a->get_account()) {
+ notice( t('You must be logged in to use this feature.'));
+ return '';
+ }
$o = replace_macros(get_markup_template('channel_import.tpl'),array(
'$title' => t('Import Channel'),