mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
Merge pull request #4 from rullzer/allow_404
No need to error out if the propery can't be found
This commit is contained in:
commit
aa91e9c193
1 changed files with 2 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ class SearchHandler {
|
|||
}, $xml->orderBy);
|
||||
$select = array_map(function ($propName) use ($allProps) {
|
||||
if (!isset($allProps[$propName])) {
|
||||
throw new BadRequest('requested property is not a valid property for this scope');
|
||||
return;
|
||||
}
|
||||
$prop = $allProps[$propName];
|
||||
if (!$prop->selectable) {
|
||||
|
|
@ -120,6 +120,7 @@ class SearchHandler {
|
|||
}
|
||||
return $prop;
|
||||
}, $xml->select);
|
||||
$select = array_filter($select);
|
||||
|
||||
$where = $this->transformOperator($xml->where, $allProps);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue