aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editwebpage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-09 01:25:24 -0700
committerfriendica <info@friendica.com>2013-08-09 01:25:24 -0700
commitec3e3922b8da42823e6d933a6964639c4bb5634a (patch)
treefc659ef623499b2162305497a89925204d3013e3 /mod/editwebpage.php
parent7e97b358fda050238654fe85bf40196b69623eed (diff)
parent2dfd9dce058bf829c0bdeb54e473bca762c14311 (diff)
downloadvolse-hubzilla-ec3e3922b8da42823e6d933a6964639c4bb5634a.tar.gz
volse-hubzilla-ec3e3922b8da42823e6d933a6964639c4bb5634a.tar.bz2
volse-hubzilla-ec3e3922b8da42823e6d933a6964639c4bb5634a.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'mod/editwebpage.php')
-rw-r--r--mod/editwebpage.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php
index c7323a7f7..46c6b8817 100644
--- a/mod/editwebpage.php
+++ b/mod/editwebpage.php
@@ -9,11 +9,17 @@ function editwebpage_content(&$a) {
$which = argv(1);
// $a->get_channel() and stuff don't work here, so we've got to find the owner for ourselves.
- $owner = q("select channel_id from channel where channel_address = '%s'",
+ $r = q("select channel_id from channel where channel_address = '%s'",
dbesc($which)
);
+ if($r) {
+ $owner = intval($r[0]['channel_id']);
+ //logger('owner: ' . print_r($owner,true));
+ }
+
+
if((local_user()) && (argc() > 2) && (argv(2) === 'view')) {
$which = $channel['channel_address'];
}