Skip to content

Commit

Permalink
Merge pull request #1002 from Codeinwp/bugfix/555
Browse files Browse the repository at this point in the history
Fixed PHP fatal error
  • Loading branch information
vytisbulkevicius authored Aug 28, 2024
2 parents 5bf3b54 + df1c4e3 commit e3c493a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/models/class-rop-services-model.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public function find_account( $account_id ) {

list( $service, $service_id, $user_id ) = $this->handle_underscore_exception( $account_id );

if ( count( $services[ $service . '_' . $service_id ]['available_accounts'] ) >= 1 ) {
if ( ! empty( $services[ $service . '_' . $service_id ]['available_accounts'] ) && count( $services[ $service . '_' . $service_id ]['available_accounts'] ) >= 1 ) {
foreach ( $services[ $service . '_' . $service_id ]['available_accounts'] as $key => $account ) {
if ( $account['id'] == $user_id ) {
$response = array(
Expand Down

0 comments on commit e3c493a

Please sign in to comment.