Remove notice

This commit is contained in:
Champ Camba
2017-01-10 22:04:51 +08:00
parent c25d2f372a
commit d45a11172d
+4
View File
@@ -531,6 +531,10 @@ class UM_Files {
***/
function new_user_upload( $user_id, $source, $key ) {
if( ! is_numeric( $user_id ) ){
wp_die( __("Invalid user ID: ".json_encode( $user_id )." ",'ultimatemember') );
}
$user_id = trim( $user_id );
// if he does not have uploads dir yet