Skip to content

Commit

Permalink
fix(widgets): Handle value being zero
Browse files Browse the repository at this point in the history
  • Loading branch information
zooley committed Apr 11, 2024
1 parent 6dc4257 commit 78de048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Modules/Widgets/Models/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public function scopeWithFilters(Builder $query, array $filters = array()): Buil
)
->where($e . '.type', '=', 'widget');

if (!empty($filters['client_id']))
if (!is_null($filters['client_id']))
{
$query->where($p . '.client_id', '=', $filters['client_id']);
}
Expand Down

0 comments on commit 78de048

Please sign in to comment.