Passed
Push — 1.10.x ( 04397c...5e25f1 )
by Angel Fernando Quiroz
181:14 queued 130:00
created
main/coursecopy/classes/Survey.class.php 1 patch
Indentation   +103 added lines, -103 removed lines patch added patch discarded remove patch
@@ -10,86 +10,86 @@  discard block
 block discarded – undo
10 10
  */
11 11
 class Survey extends Coursecopy\Resource
12 12
 {
13
-	/**
14
-	 * The survey code
15
-	 */
13
+    /**
14
+     * The survey code
15
+     */
16 16
     public $code;
17
-	/**
18
-	 * The title and subtitle
19
-	 */
17
+    /**
18
+     * The title and subtitle
19
+     */
20 20
     public $title;
21 21
     public $subtitle;
22
-	/**
23
-	 * The author's name
24
-	 */
22
+    /**
23
+     * The author's name
24
+     */
25 25
     public $author;
26
-	/**
27
-	 * The survey's language
28
-	 */
26
+    /**
27
+     * The survey's language
28
+     */
29 29
     public $lang;
30
-	/**
31
-	 * The availability period
32
-	 */
30
+    /**
31
+     * The availability period
32
+     */
33 33
     public $avail_from;
34 34
     public $avail_till;
35
-	/**
36
-	 * Flag for shared status
37
-	 */
35
+    /**
36
+     * Flag for shared status
37
+     */
38 38
     public $is_shared;
39
-	/**
40
-	 * Template used
41
-	 */
39
+    /**
40
+     * Template used
41
+     */
42 42
     public $template;
43
-	/**
44
-	 * Introduction text
45
-	 */
43
+    /**
44
+     * Introduction text
45
+     */
46 46
     public $intro;
47
-	/**
48
-	 * Thanks text
49
-	 */
47
+    /**
48
+     * Thanks text
49
+     */
50 50
     public $surveythanks;
51
-	/**
52
-	 * Creation date
53
-	 */
51
+    /**
52
+     * Creation date
53
+     */
54 54
     public $creation_date;
55
-	/**
56
-	 * Invitation status
57
-	 */
55
+    /**
56
+     * Invitation status
57
+     */
58 58
     public $invited;
59
-	/**
60
-	 * Answer status
61
-	 */
59
+    /**
60
+     * Answer status
61
+     */
62 62
     public $answered;
63
-	/**
64
-	 * Invitation and reminder mail contents
65
-	 */
63
+    /**
64
+     * Invitation and reminder mail contents
65
+     */
66 66
     public $invite_mail;
67 67
     public $reminder_mail;
68
-	/**
69
-	 * Questions and invitations lists
70
-	 */
68
+    /**
69
+     * Questions and invitations lists
70
+     */
71 71
     public $question_ids;
72 72
     public $invitation_ids;
73 73
 
74
-	/**
75
-	 * Create a new Survey
76
-	 * @param string $code
77
-	 * @param string $title
78
-	 * @param string $subtitle
79
-	 * @param string $author
80
-	 * @param string $lang
81
-	 * @param string $avail_from
82
-	 * @param string $avail_till
83
-	 * @param char $is_shared
84
-	 * @param string $template
85
-	 * @param string $intro
86
-	 * @param string $surveythanks
87
-	 * @param string $creation_date
88
-	 * @param int $invited
89
-	 * @param int $answered
90
-	 * @param string $invite_mail
91
-	 * @param string $reminder_mail
92
-	 */
74
+    /**
75
+     * Create a new Survey
76
+     * @param string $code
77
+     * @param string $title
78
+     * @param string $subtitle
79
+     * @param string $author
80
+     * @param string $lang
81
+     * @param string $avail_from
82
+     * @param string $avail_till
83
+     * @param char $is_shared
84
+     * @param string $template
85
+     * @param string $intro
86
+     * @param string $surveythanks
87
+     * @param string $creation_date
88
+     * @param int $invited
89
+     * @param int $answered
90
+     * @param string $invite_mail
91
+     * @param string $reminder_mail
92
+     */
93 93
     public function __construct(
94 94
         $id,
95 95
         $code,
@@ -109,49 +109,49 @@  discard block
 block discarded – undo
109 109
         $invite_mail,
110 110
         $reminder_mail
111 111
     ) {
112
-		parent::__construct($id,RESOURCE_SURVEY);
113
-		$this->code = $code;
114
-		$this->title = $title;
115
-		$this->subtitle = $subtitle;
116
-		$this->author = $author;
117
-		$this->lang = $lang;
118
-		$this->avail_from = $avail_from;
119
-		$this->avail_till = $avail_till;
120
-		$this->is_shared = $is_shared;
121
-		$this->template = $template;
122
-		$this->intro = $intro;
123
-		$this->surveythanks = $surveythanks;
124
-		$this->creation_date = $creation_date;
125
-		$this->invited = $invited;
126
-		$this->answered = $answered;
127
-		$this->invite_mail = $invite_mail;
128
-		$this->reminder_mail = $reminder_mail;
129
-		$this->question_ids = array();
130
-		$this->invitation_ids = array();
131
-	}
112
+        parent::__construct($id,RESOURCE_SURVEY);
113
+        $this->code = $code;
114
+        $this->title = $title;
115
+        $this->subtitle = $subtitle;
116
+        $this->author = $author;
117
+        $this->lang = $lang;
118
+        $this->avail_from = $avail_from;
119
+        $this->avail_till = $avail_till;
120
+        $this->is_shared = $is_shared;
121
+        $this->template = $template;
122
+        $this->intro = $intro;
123
+        $this->surveythanks = $surveythanks;
124
+        $this->creation_date = $creation_date;
125
+        $this->invited = $invited;
126
+        $this->answered = $answered;
127
+        $this->invite_mail = $invite_mail;
128
+        $this->reminder_mail = $reminder_mail;
129
+        $this->question_ids = array();
130
+        $this->invitation_ids = array();
131
+    }
132 132
 
133
-	/**
134
-	 * Add a question to this survey
135
-	 */
136
-	function add_question($id)
137
-	{
138
-		$this->question_ids[] = $id;
139
-	}
133
+    /**
134
+     * Add a question to this survey
135
+     */
136
+    function add_question($id)
137
+    {
138
+        $this->question_ids[] = $id;
139
+    }
140 140
 
141
-	/**
142
-	 * Add an invitation to this survey
143
-	 */
144
-	function add_invitation($id)
145
-	{
146
-		$this->invitation_ids[] = $id;
147
-	}
141
+    /**
142
+     * Add an invitation to this survey
143
+     */
144
+    function add_invitation($id)
145
+    {
146
+        $this->invitation_ids[] = $id;
147
+    }
148 148
 
149
-	/**
150
-	 * Show this survey
151
-	 */
152
-	function show()
153
-	{
154
-		parent::show();
155
-		echo $this->code.' - '.$this->title;
156
-	}
149
+    /**
150
+     * Show this survey
151
+     */
152
+    function show()
153
+    {
154
+        parent::show();
155
+        echo $this->code.' - '.$this->title;
156
+    }
157 157
 }
Please login to merge, or discard this patch.
main/coursecopy/classes/Thematic.class.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 {
12 12
     public $params = array();
13 13
     public $thematic_advance_list = array();
14
-	public $thematic_plan_list = array();
14
+    public $thematic_plan_list = array();
15 15
 
16 16
     /**
17
-    * Create a new Thematic
18
-    *
19
-    * @param array parameters
20
-    */
17
+     * Create a new Thematic
18
+     *
19
+     * @param array parameters
20
+     */
21 21
     public function __construct($params)
22 22
     {
23 23
         parent::__construct($params['id'], RESOURCE_THEMATIC);
Please login to merge, or discard this patch.
main/coursecopy/classes/CourseRecycler.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -619,8 +619,8 @@  discard block
 block discarded – undo
619 619
     }
620 620
 
621 621
     /**
622
-    * Recycle Thematics
623
-    */
622
+     * Recycle Thematics
623
+     */
624 624
     public function recycle_thematic($session_id = 0)
625 625
     {
626 626
         if ($this->course->has_resources(RESOURCE_THEMATIC)) {
@@ -685,8 +685,8 @@  discard block
 block discarded – undo
685 685
     }
686 686
 
687 687
     /**
688
-    * Recycle Attendances
689
-    */
688
+     * Recycle Attendances
689
+     */
690 690
     public function recycle_attendance($session_id = 0)
691 691
     {
692 692
         if ($this->course->has_resources(RESOURCE_ATTENDANCE)) {
Please login to merge, or discard this patch.
main/coursecopy/classes/ToolIntro.class.php 1 patch
Indentation   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -10,82 +10,82 @@
 block discarded – undo
10 10
  */
11 11
 class ToolIntro extends Coursecopy\Resource
12 12
 {
13
-	public $id;
13
+    public $id;
14 14
 
15
-	/**
16
-	 * intro text
17
-	 */
18
-	public $intro_text;
15
+    /**
16
+     * intro text
17
+     */
18
+    public $intro_text;
19 19
 
20
-	/**
21
-	 * Create a new text introduction
22
-	 * @param int $id The id of this tool introduction in the Chamilo-course
23
-	 * @param string $intro_text
24
-	 */
25
-	public function __construct($id, $intro_text)
26
-	{
27
-		parent::__construct($id, RESOURCE_TOOL_INTRO);
28
-		$this->id = $id;
29
-		$this->intro_text = $intro_text;
30
-	}
20
+    /**
21
+     * Create a new text introduction
22
+     * @param int $id The id of this tool introduction in the Chamilo-course
23
+     * @param string $intro_text
24
+     */
25
+    public function __construct($id, $intro_text)
26
+    {
27
+        parent::__construct($id, RESOURCE_TOOL_INTRO);
28
+        $this->id = $id;
29
+        $this->intro_text = $intro_text;
30
+    }
31 31
 
32
-	/**
33
-	 * Show this resource
34
-	 */
35
-	function show()
36
-	{
37
-		parent::show();
38
-		switch ($this->id)
39
-		{
40
-			case TOOL_DOCUMENT:
41
-				$lang_id = 'Documents';
42
-				break;
43
-			case TOOL_CALENDAR_EVENT:
44
-				$lang_id = 'Agenda';
45
-				break;
46
-			case TOOL_LINK:
47
-				$lang_id = 'Links';
48
-				break;
49
-			case TOOL_LEARNPATH:
50
-				$lang_id = 'LearningPath';
51
-				break;
52
-			case TOOL_ANNOUNCEMENT:
53
-				$lang_id = 'Announcements';
54
-				break;
55
-			case TOOL_FORUM:
56
-				$lang_id = 'Forums';
57
-				break;
58
-			case TOOL_DROPBOX:
59
-				$lang_id = 'Dropbox';
60
-				break;
61
-			case TOOL_QUIZ:
62
-				$lang_id = 'Exercises';
63
-				break;
64
-			case TOOL_USER:
65
-				$lang_id = 'Users';
66
-				break;
67
-			case TOOL_GROUP:
68
-				$lang_id = 'Group';
69
-				break;
70
-			case TOOL_WIKI:
71
-				$lang_id = 'Wiki';
72
-				break;
73
-			case TOOL_STUDENTPUBLICATION:
74
-				$lang_id = 'StudentPublications';
75
-				break;
76
-			case TOOL_COURSE_HOMEPAGE:
77
-				$lang_id = 'CourseHomepageLink';
78
-				break;
79
-			case TOOL_GLOSSARY:
80
-				$lang_id = 'Glossary';
81
-				break;
82
-			case TOOL_NOTEBOOK:
83
-				$lang_id = 'Notebook';
84
-				break;
85
-			default:
86
-				$lang_id = ucfirst($this->id); // This is a wild guess.
87
-		}
88
-		echo '<strong>'.get_lang($lang_id, '').':</strong><br />';
89
-		echo $this->intro_text;
90
-	}
32
+    /**
33
+     * Show this resource
34
+     */
35
+    function show()
36
+    {
37
+        parent::show();
38
+        switch ($this->id)
39
+        {
40
+            case TOOL_DOCUMENT:
41
+                $lang_id = 'Documents';
42
+                break;
43
+            case TOOL_CALENDAR_EVENT:
44
+                $lang_id = 'Agenda';
45
+                break;
46
+            case TOOL_LINK:
47
+                $lang_id = 'Links';
48
+                break;
49
+            case TOOL_LEARNPATH:
50
+                $lang_id = 'LearningPath';
51
+                break;
52
+            case TOOL_ANNOUNCEMENT:
53
+                $lang_id = 'Announcements';
54
+                break;
55
+            case TOOL_FORUM:
56
+                $lang_id = 'Forums';
57
+                break;
58
+            case TOOL_DROPBOX:
59
+                $lang_id = 'Dropbox';
60
+                break;
61
+            case TOOL_QUIZ:
62
+                $lang_id = 'Exercises';
63
+                break;
64
+            case TOOL_USER:
65
+                $lang_id = 'Users';
66
+                break;
67
+            case TOOL_GROUP:
68
+                $lang_id = 'Group';
69
+                break;
70
+            case TOOL_WIKI:
71
+                $lang_id = 'Wiki';
72
+                break;
73
+            case TOOL_STUDENTPUBLICATION:
74
+                $lang_id = 'StudentPublications';
75
+                break;
76
+            case TOOL_COURSE_HOMEPAGE:
77
+                $lang_id = 'CourseHomepageLink';
78
+                break;
79
+            case TOOL_GLOSSARY:
80
+                $lang_id = 'Glossary';
81
+                break;
82
+            case TOOL_NOTEBOOK:
83
+                $lang_id = 'Notebook';
84
+                break;
85
+            default:
86
+                $lang_id = ucfirst($this->id); // This is a wild guess.
87
+        }
88
+        echo '<strong>'.get_lang($lang_id, '').':</strong><br />';
89
+        echo $this->intro_text;
90
+    }
91 91
 }
Please login to merge, or discard this patch.
main/coursecopy/classes/CourseSession.class.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -11,24 +11,24 @@
 block discarded – undo
11 11
 class CourseSession extends Coursecopy\Resource
12 12
 {
13 13
     // The title session
14
-	public $title;
14
+    public $title;
15 15
 
16
-	/**
17
-	 * Create a new Session
18
-	 * @param int $id
19
-	 * @param string $title
20
-	 */
21
-	public function __construct($id,$title)
22
-	{
23
-		parent::__construct($id, RESOURCE_SESSION_COURSE);
24
-		$this->title = $title;
25
-	}
16
+    /**
17
+     * Create a new Session
18
+     * @param int $id
19
+     * @param string $title
20
+     */
21
+    public function __construct($id,$title)
22
+    {
23
+        parent::__construct($id, RESOURCE_SESSION_COURSE);
24
+        $this->title = $title;
25
+    }
26 26
 
27
-	/**
28
-	 * Show this Event
29
-	 */
30
-	function show() {
31
-		parent::show();
32
-		echo $this->title;
33
-	}
27
+    /**
28
+     * Show this Event
29
+     */
30
+    function show() {
31
+        parent::show();
32
+        echo $this->title;
33
+    }
34 34
 }
Please login to merge, or discard this patch.
main/social/home.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
         $group_url = "group_view.php?id=$id";
102 102
 
103 103
         $result['name'] = '<div class="group-name">'.Display::url(
104
-                          api_ucwords(cut($result['name'], 40, true)), $group_url)
105
-                          .'</div><div class="count-username">'.
104
+                            api_ucwords(cut($result['name'], 40, true)), $group_url)
105
+                            .'</div><div class="count-username">'.
106 106
                             Display::returnFontAwesomeIcon('user').$result['count'].'</div>';
107 107
 
108 108
         $picture = $userGroup->get_picture_group(
Please login to merge, or discard this patch.
main/social/vcard_export.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 api_block_anonymous_users();
15 15
 
16 16
 if (isset($_REQUEST['userId'])) {
17
-	$userId = intval($_REQUEST['userId']);
17
+    $userId = intval($_REQUEST['userId']);
18 18
 } else {
19 19
     api_not_allowed();
20 20
 }
Please login to merge, or discard this patch.
main/social/friends.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
             if (isset($friends[$j])) {
129 129
                 $friend = $friends[$j];
130 130
                 $user_name = api_xml_http_response_encode($friend['firstName'].' '.$friend['lastName']);
131
-				$userPicture = UserManager::getUserPicture($friend['friend_user_id']);
131
+                $userPicture = UserManager::getUserPicture($friend['friend_user_id']);
132 132
 
133 133
                 $friend_html .= '
134 134
                     <div class="col-md-3">
Please login to merge, or discard this patch.
main/permissions/blog_permissions.inc.php 1 patch
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 		WHERE status = '1' AND c_id = '".api_get_course_int_id()."'";
50 50
 $result = Database::query($sql);
51 51
 while ($user = Database::fetch_assoc($result)) {
52
-	unset($blog_users[$user['user_id']]);
52
+    unset($blog_users[$user['user_id']]);
53 53
 }
54 54
 
55 55
 //$user_id=$userIdViewed;
@@ -84,30 +84,30 @@  discard block
 block discarded – undo
84 84
 // 			RETRIEVING THE PERMISSIONS OF THE ROLES OF THE USER
85 85
 // ------------------------------------------------------------------
86 86
 if (api_get_setting('user_roles')=='true') {
87
-	// course roles that are assigned to the user
88
-	$current_user_role_permissions_of_user=get_roles_permissions('user',$user_id);
89
-	$inherited_permissions=permission_array_merge($inherited_permissions,$current_user_role_permissions_of_user);
90
-	// NOTE: deze array moet nog gemerged worden met de $inherited_permissions array
91
-	// (heet momenteel nog $current_group_permissions_of_user omdat voorlopig enkel de
92
-	// groepsge�rfde permissions in beschouwing worden genomen
93
-	// dit moet ook de rol permissies van rollen die toegekend worden aan een gebruiker
94
-	// en de rol permissies van rollen die toegekend worden aan de groepen van een gebruiker
95
-	// omvatten.
96
-	// NOTE: checken als de rollen brol wel degelijk geactiveerd is voordat we dit allemaal
97
-	// ophalen.
98
-	// platform roles that are assigned to the user
99
-	$current_user_role_permissions_of_user=get_roles_permissions('user',$user_id, 'platform');
100
-	$inherited_permissions=permission_array_merge($inherited_permissions,$current_user_role_permissions_of_user);
87
+    // course roles that are assigned to the user
88
+    $current_user_role_permissions_of_user=get_roles_permissions('user',$user_id);
89
+    $inherited_permissions=permission_array_merge($inherited_permissions,$current_user_role_permissions_of_user);
90
+    // NOTE: deze array moet nog gemerged worden met de $inherited_permissions array
91
+    // (heet momenteel nog $current_group_permissions_of_user omdat voorlopig enkel de
92
+    // groepsge�rfde permissions in beschouwing worden genomen
93
+    // dit moet ook de rol permissies van rollen die toegekend worden aan een gebruiker
94
+    // en de rol permissies van rollen die toegekend worden aan de groepen van een gebruiker
95
+    // omvatten.
96
+    // NOTE: checken als de rollen brol wel degelijk geactiveerd is voordat we dit allemaal
97
+    // ophalen.
98
+    // platform roles that are assigned to the user
99
+    $current_user_role_permissions_of_user=get_roles_permissions('user',$user_id, 'platform');
100
+    $inherited_permissions=permission_array_merge($inherited_permissions,$current_user_role_permissions_of_user);
101 101
 }
102 102
 // ------------------------------------------------------------------
103 103
 //	RETRIEVING THE PERMISSIONS OF THE ROLES OF THE GROUPS OF THE USER
104 104
 // ------------------------------------------------------------------
105 105
 if (api_get_setting('group_roles')=='true') {
106
-	// NOTE: DIT MOET NOG VERDER UITGEWERKT WORDEN
107
-	foreach ($groups_of_user as $group) {
108
-		$this_current_group_role_permissions_of_user=get_roles_permissions('user',$user_id);
109
-		//$inherited_permissions[$tool][]=$permission;
110
-	}
106
+    // NOTE: DIT MOET NOG VERDER UITGEWERKT WORDEN
107
+    foreach ($groups_of_user as $group) {
108
+        $this_current_group_role_permissions_of_user=get_roles_permissions('user',$user_id);
109
+        //$inherited_permissions[$tool][]=$permission;
110
+    }
111 111
 }
112 112
 
113 113
 echo "<form method=\"post\" action=\"".str_replace('&', '&amp;', $_SERVER['REQUEST_URI'])."\">";
@@ -118,12 +118,12 @@  discard block
 block discarded – undo
118 118
 
119 119
 if (api_get_setting('user_roles')=='true')
120 120
 {
121
-	// the list of the roles for the user
122
-	echo '<strong>'.get_lang('UserRoles').'</strong><br />';
123
-	$current_user_course_roles=get_roles('user',$user_id);
124
-	$current_user_platform_roles=get_roles('user',$user_id, 'platform');
125
-	display_role_list($current_user_course_roles, $current_user_platform_roles);
126
-	echo '<br />';
121
+    // the list of the roles for the user
122
+    echo '<strong>'.get_lang('UserRoles').'</strong><br />';
123
+    $current_user_course_roles=get_roles('user',$user_id);
124
+    $current_user_platform_roles=get_roles('user',$user_id, 'platform');
125
+    display_role_list($current_user_course_roles, $current_user_platform_roles);
126
+    echo '<br />';
127 127
 }
128 128
 
129 129
 // ---------------------------------------------------
@@ -133,59 +133,59 @@  discard block
 block discarded – undo
133 133
 
134 134
 // the header
135 135
 echo "\t<tr>\n";
136
-	echo "\t\t<th rowspan=\"2\">".get_lang('Module')."</th>\n";
137
-	echo "\t\t<th colspan=\"4\">".get_lang('ArticleManager')."</th>\n";
138
-	echo "\t\t<th colspan=\"3\">".get_lang('CommentManager')."</th>\n";
139
-	echo "\t\t<th colspan=\"3\">".get_lang('BlogManager')."</th>\n";
136
+    echo "\t\t<th rowspan=\"2\">".get_lang('Module')."</th>\n";
137
+    echo "\t\t<th colspan=\"4\">".get_lang('ArticleManager')."</th>\n";
138
+    echo "\t\t<th colspan=\"3\">".get_lang('CommentManager')."</th>\n";
139
+    echo "\t\t<th colspan=\"3\">".get_lang('BlogManager')."</th>\n";
140 140
 echo "\t</tr>\n";
141 141
 
142 142
 // Subheader
143 143
 echo "\t<tr>\n";
144
-	echo "\t\t<th align='center'>".get_lang('Add')."</th>\n";
145
-	echo "\t\t<th align='center'>".get_lang('Delete')."</th>\n";
146
-	echo "\t\t<th align='center'>".get_lang('Edit')."</th>\n";
147
-	echo "\t\t<th align='center'>".get_lang('Rate')."</th>\n";
148
-	echo "\t\t<th align='center'>".get_lang('Add')."</th>\n";
149
-	echo "\t\t<th align='center'>".get_lang('Delete')."</th>\n";
150
-	echo "\t\t<th align='center'>".get_lang('Rate')."</th>\n";
151
-	echo "\t\t<th align='center'>".get_lang('Tasks')."</th>\n";
152
-	echo "\t\t<th align='center'>".get_lang('Members')."</th>\n";
153
-	echo "\t\t<th align='center'>".get_lang('Roles')."</th>\n";
144
+    echo "\t\t<th align='center'>".get_lang('Add')."</th>\n";
145
+    echo "\t\t<th align='center'>".get_lang('Delete')."</th>\n";
146
+    echo "\t\t<th align='center'>".get_lang('Edit')."</th>\n";
147
+    echo "\t\t<th align='center'>".get_lang('Rate')."</th>\n";
148
+    echo "\t\t<th align='center'>".get_lang('Add')."</th>\n";
149
+    echo "\t\t<th align='center'>".get_lang('Delete')."</th>\n";
150
+    echo "\t\t<th align='center'>".get_lang('Rate')."</th>\n";
151
+    echo "\t\t<th align='center'>".get_lang('Tasks')."</th>\n";
152
+    echo "\t\t<th align='center'>".get_lang('Members')."</th>\n";
153
+    echo "\t\t<th align='center'>".get_lang('Roles')."</th>\n";
154 154
 echo "\t</tr>\n";
155 155
 
156 156
 // the main area with the checkboxes or images
157 157
 foreach ($blog_users as $user_id => $user_name) { // $blog_users contains all the users in this blog
158
-	// ---------------------------------------------------
159
-	// 			RETRIEVING THE PERMISSIONS OF THE USER
160
-	// ---------------------------------------------------
161
-	$current_user_permissions = array();
162
-	$current_user_permissions = get_permissions('user', $user_id);
163
-
164
-	echo "\t<tr>\n";
165
-	echo "\t\t<td>\n";
166
-	echo $user_name;
167
-	echo "\t\t</td>\n";
168
-
169
-	foreach ($rights_full as $key => $value) {
170
-
171
-		echo "\t\t<td align='center'>\n";
172
-		if (in_array($value,$rights_blog)) {
173
-			display_image_matrix_for_blogs(
174
-				$current_user_permissions,
175
-				$user_id,
176
-				'BLOG_'.$blog_id,
177
-				$value,
178
-				(isset($inherited_permissions) ? $inherited_permissions : null),
179
-				(isset($course_admin) ? $course_admin : null)
180
-			);
181
-		}
182
-		// note: in a later stage this part will be replaced by a function
183
-		// so that we can easily switch between a checkbox approach or an image approach
184
-		// where every click is in fact a change of status. In the checkbox approach you first have to
185
-		// do the changes and then store them by clicking the submit button.
186
-		echo "\t\t</td>\n";
187
-	}
188
-	echo "\t</tr>\n";
158
+    // ---------------------------------------------------
159
+    // 			RETRIEVING THE PERMISSIONS OF THE USER
160
+    // ---------------------------------------------------
161
+    $current_user_permissions = array();
162
+    $current_user_permissions = get_permissions('user', $user_id);
163
+
164
+    echo "\t<tr>\n";
165
+    echo "\t\t<td>\n";
166
+    echo $user_name;
167
+    echo "\t\t</td>\n";
168
+
169
+    foreach ($rights_full as $key => $value) {
170
+
171
+        echo "\t\t<td align='center'>\n";
172
+        if (in_array($value,$rights_blog)) {
173
+            display_image_matrix_for_blogs(
174
+                $current_user_permissions,
175
+                $user_id,
176
+                'BLOG_'.$blog_id,
177
+                $value,
178
+                (isset($inherited_permissions) ? $inherited_permissions : null),
179
+                (isset($course_admin) ? $course_admin : null)
180
+            );
181
+        }
182
+        // note: in a later stage this part will be replaced by a function
183
+        // so that we can easily switch between a checkbox approach or an image approach
184
+        // where every click is in fact a change of status. In the checkbox approach you first have to
185
+        // do the changes and then store them by clicking the submit button.
186
+        echo "\t\t</td>\n";
187
+    }
188
+    echo "\t</tr>\n";
189 189
 }
190 190
 
191 191
 echo "</table>\n";
Please login to merge, or discard this patch.