aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-15 18:14:19 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-15 18:14:19 -0700
commit59b67d52e60d51faa39cdad1921a64e8f64ea0ae (patch)
treec6b26d0b6fece19e4c6631a33f8b56da6cf7ac0d /include
parentbfcdf5bd9e57dfd7c1bc32c8fcc5d8c2b4d45653 (diff)
downloadvolse-hubzilla-59b67d52e60d51faa39cdad1921a64e8f64ea0ae.tar.gz
volse-hubzilla-59b67d52e60d51faa39cdad1921a64e8f64ea0ae.tar.bz2
volse-hubzilla-59b67d52e60d51faa39cdad1921a64e8f64ea0ae.zip
clone sync fixes across red/hz
Diffstat (limited to 'include')
-rw-r--r--include/zot.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index 9a20084c4..4f80dc518 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -2889,7 +2889,12 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
}
if(array_key_exists('channel',$arr) && is_array($arr['channel']) && count($arr['channel'])) {
- $disallowed = array('channel_id','channel_account_id','channel_primary','channel_prvkey', 'channel_address', 'channel_notifyflags');
+ if(array_key_exists('channel_removed',$arr['channel']))
+ $arr['channel_pageflags'] |= PAGE_REMOVED;
+ if(array_key_exists('channel_system',$arr['channel']))
+ $arr['channel_pageflags'] |= PAGE_SYSTEM;
+
+ $disallowed = array('channel_id','channel_account_id','channel_primary','channel_prvkey', 'channel_address', 'channel_notifyflags', 'channel_removed', 'channel_system');
$clean = array();
foreach($arr['channel'] as $k => $v) {
@@ -3202,7 +3207,7 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
}
if(count($clean)) {
foreach($clean as $k => $v) {
- $r = dbq("UPDATE profile set " . dbesc($k) . " = '" . dbesc($v)
+ $r = dbq("UPDATE profile set `" . dbesc($k) . "` = '" . dbesc($v)
. "' where profile_guid = '" . dbesc($profile['profile_guid']) . "' and uid = " . intval($channel['channel_id']));
}
}