Fix thread ban

This commit is contained in:
Alexander Burakovskiy 2016-02-25 14:53:15 +02:00
parent 9fe423db62
commit 0edc9657b4

View File

@ -133,7 +133,7 @@ class BanController extends AbstractController
$page['formcomment'] = $ban->comment;
} elseif ($request->query->has('thread')) {
// Prepopulate form using thread data
$thread_id = $request->query->has('thread');
$thread_id = $request->query->get('thread');
if (!preg_match("/^\d{1,10}$/", $thread_id)) {
throw new BadRequestException('Wrong value of "thread" argument.');
}