diff --git a/src/licensing/class-license-manager.php b/src/licensing/class-license-manager.php index f9c922d..fa5ba0c 100644 --- a/src/licensing/class-license-manager.php +++ b/src/licensing/class-license-manager.php @@ -58,7 +58,7 @@ protected function get_object_property( $object, $property, $default = '' ) { public function hook() { // do nothing if no extensions are registered at this point - if( empty( $this->extensions ) ) { + if( count( $this->extensions ) === 0 ) { return; } diff --git a/src/licensing/class-update-manager.php b/src/licensing/class-update-manager.php index 3da2e65..a043f91 100644 --- a/src/licensing/class-update-manager.php +++ b/src/licensing/class-update-manager.php @@ -103,7 +103,7 @@ public function get_plugin_info( $result, $action = '', $args = null ) { public function add_updates( $updates ) { // do nothing if no plugins registered - if( empty( $this->extensions ) ) { + if( count( $this->extensions ) === 0 ) { return $updates; }