Whenever we display an image for any reason, show the admin block, fixes #621

This commit is contained in:
Shish
2020-03-23 00:06:43 +00:00
parent bfcefb97e7
commit 1fc75c0b18
7 changed files with 19 additions and 15 deletions

View File

@@ -353,7 +353,9 @@ class IPBan extends Extension
public function find_active_ban($ips, $remote, $networks)
{
if(!$remote) return null;
if (!$remote) {
return null;
}
$active_ban_id = null;
if (isset($ips[$remote])) {
$active_ban_id = $ips[$remote];