diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 7a0097ce..908d9ba9 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -50,11 +50,11 @@ jobs: contents: write needs: build steps: + - uses: actions/checkout@v4 - name: fail on fork - if: github.repository_owner != 'verdigado' - run: exit 1 + if: github.repository_owner != 'verdigado' + run: exit 1 - - uses: actions/checkout@v4 - name: Echo debug run: | echo "sunflower-${{ github.ref_name }}.zip" diff --git a/.gitignore b/.gitignore index f3eeba90..c66b562d 100755 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,5 @@ documentation/ build/ assets/vndr/ .favorites.json -.vscode/settings.json +.vscode pa11y.json diff --git a/functions/icalimport.php b/functions/icalimport.php index 4570ba18..dcd7ca79 100644 --- a/functions/icalimport.php +++ b/functions/icalimport.php @@ -190,8 +190,10 @@ function sunflower_import_icals( $force = false ) { continue; } - $response = sunflower_icalimport( $url, $auto_categories ); - $ids_from_remote = array_merge( $ids_from_remote, $response[0] ); + $response = sunflower_icalimport( $url, $auto_categories ); + if ( !empty( $response ) ) { + $ids_from_remote = array_merge( $ids_from_remote, $response[0] ); + } } $deleted_on_remote = array_diff( sunflower_get_events_having_uid(), $ids_from_remote );