Changeset 14131

Show
Ignore:
Timestamp:
06/13/12 07:56:53 (1 year ago)
Author:
mbrevda
Message:

dont run backup if no storage servers were found

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/backup/bin/backup.php

    r14086 r14131  
    2626  //b= backup object 
    2727  if ($bu = backup_get_backup($vars['id'])) { 
    28      
     28    //dont run if no storage servers were found 
     29    if (!isset($bu['storage_servers']) || count($bu['storage_servers']) < 1) { 
     30      backup_log(_('No storage servers found! Aborting.')); 
     31      exit(); 
     32    }  
    2933    $s = backup_get_server('all_detailed'); 
    3034    $b = new Backup($bu, $s);