diff --git a/custompages/index-unlogged.php b/custompages/index-unlogged.php
index b3a3c00073..5a0875be3a 100755
--- a/custompages/index-unlogged.php
+++ b/custompages/index-unlogged.php
@@ -1,4 +1,4 @@
-
-
';
// Set bredcrumb
-switch ($current_page)
-{
+switch ($current_page) {
case 'new_post' :
$nameTools = get_lang('NewPost');
$interbreadcrumb[] = array ('url' => "blog.php?blog_id=$blog_id", "name" => Blog :: get_blog_title($blog_id));
@@ -240,14 +236,11 @@ switch ($current_page)
}
// feedback messages
-if (!empty($return_message))
-{
- if ($return_message['type'] == 'confirmation')
- {
+if (!empty($return_message)) {
+ if ($return_message['type'] == 'confirmation') {
Display::display_confirmation_message($return_message['message']);
}
- if ($return_message['type'] == 'error')
- {
+ if ($return_message['type'] == 'error') {
Display::display_error_message($return_message['message']);
}
}
@@ -276,12 +269,12 @@ Display::display_introduction_section(TOOL_BLOG);
-
@@ -312,11 +305,11 @@ Blog :: display_minimonthcalendar($month, $year, $blog_id);
';
Blog :: display_form_user_unsubscribe($blog_id);
- }
- else
+ } else {
api_not_allowed();
+ }
break;
case 'manage_rights' :
Blog :: display_form_user_rights($blog_id);
break;
case 'manage_tasks' :
- if (api_is_allowed('BLOG_'.$blog_id, 'task_management'))
- {
+ if (api_is_allowed('BLOG_'.$blog_id, 'task_management')) {
if (isset($_GET['do']) && $_GET['do'] == 'add')
{
Blog :: display_new_task_form($blog_id);
@@ -468,12 +442,9 @@ switch ($current_page) {
break;
case '' :
default :
- if (isset ($_GET['filter']) && !empty ($_GET['filter']))
- {
+ if (isset ($_GET['filter']) && !empty ($_GET['filter'])) {
Blog :: display_day_results($blog_id, Database::escape_string($_GET['filter']));
- }
- else
- {
+ } else {
Blog :: display_blog_posts($blog_id);
}
}
diff --git a/main/blog/blog_admin.php b/main/blog/blog_admin.php
index 02696dfc95..3f62731f81 100755
--- a/main/blog/blog_admin.php
+++ b/main/blog/blog_admin.php
@@ -49,8 +49,8 @@ if (api_is_allowed_to_edit()) {
'name' => $current_section
);
Display::display_header('');
- } else {
- }
+ } else {
+ }
echo '';
@@ -83,7 +83,7 @@ if (api_is_allowed_to_edit()) {
Display::display_confirmation_message(get_lang('BlogDeleted'));
}
- /*
+ /*
DISPLAY
*/
//api_display_tool_title($nameTools);
diff --git a/main/calendar/agenda.inc.php b/main/calendar/agenda.inc.php
index 4da2337462..04fc03d7ee 100755
--- a/main/calendar/agenda.inc.php
+++ b/main/calendar/agenda.inc.php
@@ -795,9 +795,6 @@ function selectAll(cbList,bSelect,showwarning) {
}
document.new_calendar_item.submit();
}
-
-
-
}
function reverseAll(cbList)
@@ -847,15 +844,12 @@ function plus_ical() {
*/
function user_group_filter_javascript()
{
- return "
- ";
+ ";
}
/**
@@ -911,7 +905,6 @@ function get_course_users()
*/
function get_course_groups()
{
- $group_list = array();
$group_list = CourseManager::get_group_list_of_course(api_get_course_id(), api_get_session_id());
return $group_list;
}
@@ -1405,7 +1398,11 @@ function show_user_group_filter_form()
$option = " | |