Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
35b1e2a8
Commit
35b1e2a8
authored
Jul 08, 2016
by
Dominik Hebeler
Browse files
Bug behoben, bei dem der Sprücheschalter nicht korrekt überprüft wurden
parent
03d84a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
35b1e2a8
...
...
@@ -44,7 +44,7 @@ class MetaGerSearch extends Controller
# Zunächst den Spruch
$spruecheFile
=
storage_path
()
.
"/app/public/sprueche.txt"
;
if
(
file_exists
(
$spruecheFile
)
&&
$
_GET
[
'sprueche'
]
)
if
(
file_exists
(
$spruecheFile
)
&&
$
request
->
has
(
'sprueche'
)
)
{
$sprueche
=
file
(
$spruecheFile
);
$spruch
=
$sprueche
[
array_rand
(
$sprueche
)];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment