mirror of
https://github.com/pi-hole/web.git
synced 2026-03-03 16:09:04 +00:00
Improved comments
This commit is contained in:
6
data.php
6
data.php
@@ -279,14 +279,14 @@
|
||||
// (e.g. once in gravity list, once in blacklist)
|
||||
if($action && strlen($key) > 0)
|
||||
{
|
||||
// $action is true (we want to add) *and* key is not empty
|
||||
$array[$key] = true;
|
||||
}
|
||||
elseif(isset($array[$key]))
|
||||
elseif(!$action && isset($array[$key]))
|
||||
{
|
||||
// $action is not true (we want to remove) *and* key is set
|
||||
// $action is false (we want to remove) *and* key is set
|
||||
unset($array[$key]);
|
||||
}
|
||||
// else: Remove, but not set -> don't have to don anything
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user