splitbrain/dokuwiki-plugin-sync — pull request #18 by gturri (2013-01-23 07:18:46+00:00)
Title: Handle error

Currently if the request for remote pages is a success but the one for media fails,
then we have the error message "Failed to fetch remote file list" but the list of pages
is displayed, and (if php warnings are enabled) we then have
Warning: Invalid argument supplied for foreach() in sync/admin.php on line 546

It's therefore not quite clear for the user if it's a success or a failure
(and in particular if he can go on)

The goal of this patch is to keep only the "failed to fetch ..." error message