diff --git a/inc/bans.php b/inc/bans.php index fbf341c6..69861353 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -198,7 +198,7 @@ class Bans { return false; } - if ($mod['boards'][0] != '*' && !in_array($ban['board'], $mod['boards'])) + if ($mod && $mod['boards'][0] != '*' && !in_array($ban['board'], $mod['boards'])) error($config['error']['noaccess']); if ($modlog) { diff --git a/templates/index.html b/templates/index.html index b6fef53e..25e5f3cd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -64,7 +64,7 @@ {% endraw %} {% for name, uri in config.stylesheets %}{% raw %}'{% endraw %}{{ name|addslashes }}{% raw %}' : '{% endraw %}/stylesheets/{{ uri|addslashes }}{% raw %}', {% endraw %}{% endfor %}{% raw %} - }; + }; onready(init); {% endraw %}