diff --git a/system/pages/monsters.php b/system/pages/monsters.php index 8ba07acc3..f8a8a66aa 100644 --- a/system/pages/monsters.php +++ b/system/pages/monsters.php @@ -39,9 +39,11 @@ // display monster $monster_name = urldecode(stripslashes(ucwords(strtolower($_REQUEST['name'])))); -$monster = Monster::where('hide', '!=', 1)->where('name', $monster_name)->first()->toArray(); +$monster = Monster::where('hide', '!=', 1)->where('name', $monster_name)->first(); + +if ($monster && isset($monster->name)) { + $monster = $monster->toArray(); -if (isset($monster['name'])) { function sort_by_chance($a, $b) { if ($a['chance'] == $b['chance']) {