Beispiel #1
0
 private static function _setLiveID()
 {
     if ('' == self::$_liveDestinationID) {
         foreach (pb_backupbuddy::$options['remote_destinations'] as $destination_id => $destination) {
             if ('live' == $destination['type']) {
                 self::$_liveDestinationID = $destination_id;
                 break;
             }
         }
         if ('' == self::$_liveDestinationID) {
             pb_backupbuddy::status('error', 'Error #382938932: Fatal error. No Live destination was found configured. Set up BackupBuddy live.');
             return false;
         }
     }
     return true;
 }