Fix stupid break in adminstuds

This commit is contained in:
Olivier PEREZ 2015-10-28 22:11:00 +01:00
parent 6d8353b652
commit 15640a6788
3 changed files with 19 additions and 1 deletions

View file

@ -91,7 +91,7 @@ if (!empty($_GET['poll'])) {
$admin_poll_id = filter_input(INPUT_GET, 'poll', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => POLL_REGEX]]);
if (strlen($admin_poll_id) === 24) {
$poll_id = substr($admin_poll_id, 0, 16);
$poll = $pollService->findById($poll_id);
$poll = $pollService->findByAdminId($admin_poll_id);
}
}