Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix characters house #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kyilmaz80
Copy link

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.

$isHouse = false;
$house = '';
if (isset($_GET['house']) && in_array($_GET['house'],
array('hufflepuff', 'gryffindor', 'ravenclaw', 'slytherin'))) {

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
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