Skip to content

Commit

Permalink
Remove unnecessary use of empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lhsazevedo committed Oct 5, 2024
1 parent 83b37df commit ba87ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpdotnet/phd/Package/PHP/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ protected function writeJsonIndex() {
continue;
}

if (empty($index["sdesc"]) && !empty($index["ldesc"])) {
if ($index["sdesc"] === "" && $index["ldesc"] !== "") {
$index["sdesc"] = $index["ldesc"];

$parentId = $index['parent_id'];
Expand Down

0 comments on commit ba87ca6

Please sign in to comment.