mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd:Ⓜ️:event::index: Prevent any column search for empty event_id.
This commit is contained in:
parent
df64c6e573
commit
2c60fa4fce
1 changed files with 3 additions and 0 deletions
|
@ -1242,6 +1242,9 @@ ircd::m::index(const event::id &event_id,
|
|||
dbs::event_idx
|
||||
};
|
||||
|
||||
if(!event_id)
|
||||
return false;
|
||||
|
||||
return column(event_id, std::nothrow, [&closure]
|
||||
(const string_view &value)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue