diff --git a/inc/profileright.class.php b/inc/profileright.class.php index 770470c0ead..7c00c8c285e 100644 --- a/inc/profileright.class.php +++ b/inc/profileright.class.php @@ -236,7 +236,7 @@ static function fillProfileRights($profiles_id) { function updateProfileRights($profiles_id, array $rights=array()) { foreach ($rights as $name => $right) { - if (isset($right) && $right) { + if (isset($right)) { if ($this->getFromDBByQuery("WHERE `profiles_id` = '$profiles_id' AND `name` = '$name'")) {