Browse Source

Indentation

unknown 11 years ago
parent
commit
de096dd544
1 changed files with 14 additions and 14 deletions
  1. 14 14
      main/inc/lib/usergroup.lib.php

+ 14 - 14
main/inc/lib/usergroup.lib.php

@@ -775,20 +775,20 @@ class UserGroup extends Model
         return $response;
 
     }
-        /**
-	 * Add a user to a class. If the class is subscribed to a course, the new
-	 * user will also be subscribed to that course.
-	 * @param int $user_id The user id
-	 * @param int $class_id The class id
-	 */
-	 public function addUser($userId, $classId)
-        {   
-            $table_rel_user = Database::get_main_table(TABLE_USERGROUP_REL_USER);
-            $userId  = intval($userId);
-            $classId = intval($classId);
-            $sql = "INSERT INTO $table_rel_user SET user_id = '".$userId."', usergroup_id='".$classId."'";
-	     Database::query($sql);
-        }
+    /**
+ * Add a user to a class. If the class is subscribed to a course, the new
+ * user will also be subscribed to that course.
+ * @param int $user_id The user id
+ * @param int $class_id The class id
+ */
+ public function addUser($userId, $classId)
+    {   
+        $table_rel_user = Database::get_main_table(TABLE_USERGROUP_REL_USER);
+        $userId  = intval($userId);
+        $classId = intval($classId);
+        $sql = "INSERT INTO $table_rel_user SET user_id = '".$userId."', usergroup_id='".$classId."'";
+	 Database::query($sql);
+    }
     
        
 }