strpos needs to test with ===0 not ==0

This commit is contained in:
M.Dent 2018-11-01 20:23:22 -04:00
parent 0060f88c45
commit 346a4f5933

View File

@ -3513,7 +3513,7 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
foreach($arr['config'][$cat] as $k => $v) { foreach($arr['config'][$cat] as $k => $v) {
if (strpos($k,'pcfgud:')==0) { if (strpos($k,'pcfgud:')===0) {
$realk = substr($k,7); $realk = substr($k,7);
$pconfig_updated[$realk] = $v; $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); $realk = substr($k,8);
$pconfig_del[$realk] = $v; $pconfig_del[$realk] = datetime_convert();
unset($arr['config'][$cat][$k]); unset($arr['config'][$cat][$k]);
} }
} }