Skip to content
Snippets Groups Projects
Commit 6e665c98 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Bug behoben, bei dem der Sprücheschalter nicht korrekt überprüft wurden

parent a5a59573
No related branches found
No related tags found
2 merge requests!117Bugfix,!116Bugfix
...@@ -44,7 +44,7 @@ class MetaGerSearch extends Controller ...@@ -44,7 +44,7 @@ class MetaGerSearch extends Controller
# Zunächst den Spruch # Zunächst den Spruch
$spruecheFile = storage_path() . "/app/public/sprueche.txt"; $spruecheFile = storage_path() . "/app/public/sprueche.txt";
if( file_exists($spruecheFile) && $_GET['sprueche']) if( file_exists($spruecheFile) && $request->has('sprueche') )
{ {
$sprueche = file($spruecheFile); $sprueche = file($spruecheFile);
$spruch = $sprueche[array_rand($sprueche)]; $spruch = $sprueche[array_rand($sprueche)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment