Fix a warning

This commit is contained in:
Michael 2020-02-16 11:32:18 +00:00
parent 3bd1f3a836
commit 9182879a00
1 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ function update_1191()
if ($key === 'show_on_profile') { if ($key === 'show_on_profile') {
if ($value) { if ($value) {
DI::pConfig()->set($uid, feature, forumlist_profile, $value); DI::pConfig()->set($uid, 'feature', 'forumlist_profile', $value);
} }
DI::pConfig()->delete($uid, $family, $key); DI::pConfig()->delete($uid, $family, $key);
@ -138,7 +138,7 @@ function update_1191()
if ($key === 'show_on_network') { if ($key === 'show_on_network') {
if ($value) { if ($value) {
DI::pConfig()->set($uid, feature, forumlist_widget, $value); DI::pConfig()->set($uid, 'feature', 'forumlist_widget', $value);
} }
DI::pConfig()->delete($uid, $family, $key); DI::pConfig()->delete($uid, $family, $key);
@ -356,7 +356,7 @@ function update_1309()
$deliver_options = ['priority' => PRIORITY_MEDIUM, 'dont_fork' => true]; $deliver_options = ['priority' => PRIORITY_MEDIUM, 'dont_fork' => true];
Worker::add($deliver_options, 'Delivery', Delivery::POST, $item['id'], $entry['cid']); Worker::add($deliver_options, 'Delivery', Delivery::POST, $item['id'], $entry['cid']);
Logger::info('Added delivery worker', ['command' => $cmd, 'item' => $item['id'], 'contact' => $entry['cid']]); Logger::info('Added delivery worker', ['item' => $item['id'], 'contact' => $entry['cid']]);
DBA::delete('queue', ['id' => $entry['id']]); DBA::delete('queue', ['id' => $entry['id']]);
} }
return Update::SUCCESS; return Update::SUCCESS;