aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-11-01 20:23:22 -0400
committerM.Dent <dentm42@dm42.net>2018-11-01 20:23:22 -0400
commit346a4f593332009014fc8b3595bd56c6ca9ff9b5 (patch)
treeddced8bbb10ffb79bd8055bf0e2a74ec1682f69a /include
parent0060f88c4599c5cda1c6d5a7f6eb345a496e382f (diff)
downloadvolse-hubzilla-346a4f593332009014fc8b3595bd56c6ca9ff9b5.tar.gz
volse-hubzilla-346a4f593332009014fc8b3595bd56c6ca9ff9b5.tar.bz2
volse-hubzilla-346a4f593332009014fc8b3595bd56c6ca9ff9b5.zip
strpos needs to test with ===0 not ==0
Diffstat (limited to 'include')
-rw-r--r--include/zot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index a5202d01b..49fc89e33 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3513,7 +3513,7 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
foreach($arr['config'][$cat] as $k => $v) {
- if (strpos($k,'pcfgud:')==0) {
+ if (strpos($k,'pcfgud:')===0) {
$realk = substr($k,7);
$pconfig_updated[$realk] = $v;
@@ -3521,9 +3521,9 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
}
- if (strpos($k,'pcfgdel:')==0) {
+ if (strpos($k,'pcfgdel:')===0) {
$realk = substr($k,8);
- $pconfig_del[$realk] = $v;
+ $pconfig_del[$realk] = datetime_convert();
unset($arr['config'][$cat][$k]);
}
}