mirror of
https://github.com/friendica/friendica
synced 2024-12-22 17:20:16 +00:00
Don't perform actions on empty conditions
This commit is contained in:
parent
4852458645
commit
90315e3434
1 changed files with 4 additions and 0 deletions
|
@ -677,6 +677,10 @@ class DBA
|
|||
$result = [];
|
||||
|
||||
foreach ($conditions as $key => $condition) {
|
||||
if (!$condition) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$condition = self::collapseCondition($condition);
|
||||
|
||||
$conditionStrings[] = array_shift($condition);
|
||||
|
|
Loading…
Reference in a new issue