mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Some small fix regarding parsing creature name from request
This commit is contained in:
parent
ab478f488a
commit
7303aabc2b
@ -62,7 +62,8 @@ if (empty($_REQUEST['creature'])) {
|
|||||||
echo '</tbody></table>';
|
echo '</tbody></table>';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$monster_name = stripslashes(trim(ucwords($_REQUEST['creature'])));
|
$monster_name = urldecode(stripslashes(trim(ucwords($_REQUEST['creature']))));
|
||||||
|
|
||||||
$monster = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1 AND `name` = ' . $db->quote($monster_name) . ';')->fetch();
|
$monster = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1 AND `name` = ' . $db->quote($monster_name) . ';')->fetch();
|
||||||
if (isset($monster['name'])) {
|
if (isset($monster['name'])) {
|
||||||
$title = $monster['name'] . " - Creatures";
|
$title = $monster['name'] . " - Creatures";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user