No need to fetch images if we've already failed

This commit is contained in:
Guillaume Turri
2013-01-20 18:51:58 +01:00
parent 4eaa77af51
commit 3161720b18

View File

@ -151,8 +151,9 @@ class admin_plugin_sync extends DokuWiki_Admin_Plugin {
$this->profiles[$this->profno]['type'] == 1){
$pages = $this->_getSyncList('pages');
}
if($this->profiles[$this->profno]['type'] == 0 ||
$this->profiles[$this->profno]['type'] == 2){
if(($this->profiles[$this->profno]['type'] == 0 ||
$this->profiles[$this->profno]['type'] == 2)
&& $pages !== false ){
$media = $this->_getSyncList('media');
}
}