Restore `item/drop/{item_id}` route in mod/item
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 25 Jul 2023 18:16:18 +0000 (20:16 +0200)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 25 Jul 2023 18:16:18 +0000 (20:16 +0200)
mod/item.php

index cf23df8..e15ca63 100644 (file)
@@ -340,7 +340,7 @@ function item_content(App $a)
 
        $args = DI::args();
 
-       if (!$args->has(3)) {
+       if (!$args->has(2)) {
                throw new HTTPException\BadRequestException();
        }