Skip to content

Bugfix characters house#8

Open
kyilmaz80 wants to merge 1 commit into
Potterhead:masterfrom
kyilmaz80:master
Open

Bugfix characters house#8
kyilmaz80 wants to merge 1 commit into
Potterhead:masterfrom
kyilmaz80:master

Conversation

@kyilmaz80
Copy link
Copy Markdown

FIX: characters.php verilerin gelmemesi sorunu house parametresi kontrolünün döngü dışında bayrak ile yapılmasıyla çözüldü. house'a verilen parametrelere de sınır getirildi.

Comment thread characters.php
$isHouse = false;
$house = '';
if (isset($_GET['house']) && in_array($_GET['house'],
array('hufflepuff', 'gryffindor', 'ravenclaw', 'slytherin'))) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selamlar, ileride hufflepuff adı huffle olarak değiştirilse burayı bulmakta biraz zorlanmaz mıyız :) Config içine veya en yukarı const olarak tanımalarsak çok tatlı olacaktır.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yorumlarınız için teşekkürler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants