Add the following code at the bottom of Swift’s functions.hp file. That should fix the issue.
if( ! function_exists('wpdm_total_downloads') ){
function wpdm_total_downloads($uid = null){
global $wpdb;
if(isset($uid) && $uid > 0)
$download_count = $wpdb->get_var("select sum(pm.meta_value) from {$wpdb->prefix}postmeta pm, {$wpdb->prefix}posts p where meta_key='__wpdm_download_count' and p.ID = pm.post_id and p.post_author = '{$uid}'");
else
$download_count = $wpdb->get_var("select sum(meta_value) from {$wpdb->prefix}postmeta where meta_key='__wpdm_download_count'");
return (int)$download_count;
}
}