Bläddra i källkod

Custom Fields Can Be Locked From Users

own3mall 8 år sedan
förälder
incheckning
78a9fd8b5d
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      modules/user_games/custom_fields.php

+ 2 - 0
modules/user_games/custom_fields.php

@@ -168,6 +168,8 @@ function exec_ogp_module()
 		
 		if(is_array($updatedSettings) && count($updatedSettings) > 0){
 			$db->changeCustomFields($home_info['home_id'],json_encode($updatedSettings));
+		}else{
+			$db->changeCustomFields($home_info['home_id'],"");
 		}
 			
 		print_success(get_lang('settings_updated'));