Teseo that was an erro in typing. however, after playing around with it, I found this.$user = '';
		  $user_id = '';
		  
		  if(!OC_ADMIN){
		  	$user = osc_user();
		  	$user_id = $user['pk_i_id'];//gets the current user id
		  }else{
		  	$user = Params::getParam('id');
		  	$user_id =  $user['0'];
		  } it works perfectly..any suggestion???