Making WordPress.org

Changeset 10363


Ignore:
Timestamp:
10/12/2020 05:43:49 AM (6 years ago)
Author:
dd32
Message:

Trac: Github PRs: Cast to array first, as this will be a object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/index.php

    r10362 r10363  
    5757                        $data->data->check_runs
    5858                        &&
    59                         in_array( 'in_progress', $data->data->check_runs )
     59                        in_array( 'in_progress', (array) $data->data->check_runs )
    6060                        &&
    6161                        strtotime( $data->last_checked_at ) <= time() - 2*60
Note: See TracChangeset for help on using the changeset viewer.