Skip to content

Commit

Permalink
set configItem if configFeedItem is set, to allow false or 0 values
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-cuffe committed Jul 20, 2023
1 parent 98dcf59 commit 8e3f9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getConfig($key, $feedId = null): mixed
if ($feedId) {
$configFeedItem = Hash::get($settings, 'feedOptions.' . $feedId . '.' . $key);

if ($configFeedItem) {
if (isset($configFeedItem)) {
$configItem = $configFeedItem;
}
}
Expand Down

0 comments on commit 8e3f9f3

Please sign in to comment.