瀏覽代碼

Custom Fields Can Be Locked From Users

own3mall 8 年之前
父節點
當前提交
9762051121
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      modules/user_games/custom_fields.php

+ 3 - 2
modules/user_games/custom_fields.php

@@ -25,7 +25,8 @@
 require_once("modules/config_games/server_config_parser.php");
 require_once('includes/form_table_class.php');
 
-$custom_fields=array();
+$custom_fields = array();
+$isAdmin = false;
 function renderCustomFields($field, $home_id)
 {
 	global $db, $custom_fields, $isAdmin;
@@ -84,7 +85,7 @@ function renderCustomFields($field, $home_id)
 
 function exec_ogp_module()
 {
-    global $db,$view,$custom_fields;
+    global $db,$view,$custom_fields,$isAdmin;
 		
 	$home_id = $_GET['home_id'];