break answer finding loop
This commit is contained in:
parent
3bd543654d
commit
a9a9456e15
@ -4,6 +4,7 @@ namespace App\Controller;
|
||||
use App\Form\SafetyQuizType;
|
||||
use Egulias\EmailValidator\Warning\Warning;
|
||||
use Error;
|
||||
use phpDocumentor\Reflection\Types\Boolean;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
@ -151,8 +152,10 @@ class SafetyController extends AbstractController
|
||||
if($choice['Value'])
|
||||
{
|
||||
$answer = $choice;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$questionData += ['answer'=>$answer, 'submittedAnswer'=>$submittedData[$key]];
|
||||
$submission += $questionData;
|
||||
$quiz[$key] += ['submittedAnswer'=>$submittedData[$key], 'answer'=>$answer];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user