From b82164e602d92d7812191a004c0f174bda73fa5b Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Fri, 30 Jun 2017 14:18:16 +0200 Subject: Simplify if condition for public capabilities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/CapabilitiesManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/CapabilitiesManager.php') diff --git a/lib/private/CapabilitiesManager.php b/lib/private/CapabilitiesManager.php index 173760fe20f..baab63c213d 100644 --- a/lib/private/CapabilitiesManager.php +++ b/lib/private/CapabilitiesManager.php @@ -57,7 +57,7 @@ class CapabilitiesManager { } if ($c instanceof ICapability) { - if(!$public || ($public && $c instanceof IPublicCapability)) { + if(!$public || $c instanceof IPublicCapability) { $capabilities = array_replace_recursive($capabilities, $c->getCapabilities()); } } else { -- cgit v1.2.3