diff --git a/my_view_page.php b/my_view_page.php
index 7f86765a9d..84318d747d 100644
--- a/my_view_page.php
+++ b/my_view_page.php
@@ -112,7 +112,6 @@
$t_number_of_boxes = count ( $t_boxes );
$t_boxes_position = config_get( 'my_view_boxes_fixed_position' );
$t_counter = 0;
-$t_two_columns_applied = false;
define( 'MY_VIEW_INC_ALLOW', true );
@@ -141,22 +140,16 @@
}
# display the box
else {
- if( !$t_timeline_view_threshold_access ) {
- if ($t_counter >= $t_number_of_boxes / 2 && !$t_two_columns_applied) {
- echo '';
- echo '
';
- $t_two_columns_applied = true;
- } elseif ($t_counter >= $t_number_of_boxes && $t_two_columns_applied) {
- echo '
';
- } else {
- include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'my_view_inc.php' );
- echo '';
- }
- $t_counter++;
- } else {
- include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'my_view_inc.php' );
- echo '';
+ # If timeline is OFF, display boxes on 2 columns
+ if( !$t_timeline_view_threshold_access
+ && $t_counter++ >= $t_number_of_boxes / 2
+ ) {
+ # End of 1st column
+ echo '';
+ echo '';
}
+ include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'my_view_inc.php' );
+ echo '
';
}
}
?>