[Fusionforge-commits] r17748 - trunk/src/www/include

Marc-Etienne VARGENAU vargenau at fusionforge.org
Tue Aug 20 19:38:13 CEST 2013


Author: vargenau
Date: 2013-08-20 19:38:13 +0200 (Tue, 20 Aug 2013)
New Revision: 17748

Modified:
   trunk/src/www/include/html.php
Log:
Whitespace only

Modified: trunk/src/www/include/html.php
===================================================================
--- trunk/src/www/include/html.php	2013-08-20 17:34:24 UTC (rev 17747)
+++ trunk/src/www/include/html.php	2013-08-20 17:38:13 UTC (rev 17748)
@@ -552,13 +552,13 @@
 	//we don't always want the default Any row shown
 	if ($show_any) {
 		$return .= '
-		<option value=""'.(($checked_val=='') ? ' selected="selected"' : '').'>'. util_html_secure($text_any) .'</option>';
+		<option value=""'.(($checked_val == '') ? ' selected="selected"' : '').'>'. util_html_secure($text_any) .'</option>';
 		$have_a_subelement = true;
 	}
 	//we don't always want the default 100 row shown
 	if ($show_100) {
 		$return .= '
-		<option value="100"'.(($checked_val==100) ? ' selected="selected"' : '').'>'. util_html_secure($text_100) .'</option>';
+		<option value="100"'.(($checked_val == 100) ? ' selected="selected"' : '').'>'. util_html_secure($text_100) .'</option>';
 		$have_a_subelement = true;
 	}
 
@@ -866,16 +866,15 @@
 	} elseif ($project->isError()) {
 		if ($project->isPermissionDeniedError()) {
 			if (!session_get_user()) {
- 			$next = '/account/login.php?error_msg='.urlencode($project->getErrorMessage());
- 			if (getStringFromServer('REQUEST_METHOD') != 'POST') {
-				$next .= '&return_to='.urlencode(getStringFromServer('REQUEST_URI'));
- 			}
-			session_redirect($next);
+				$next = '/account/login.php?error_msg='.urlencode($project->getErrorMessage());
+				if (getStringFromServer('REQUEST_METHOD') != 'POST') {
+					$next .= '&return_to='.urlencode(getStringFromServer('REQUEST_URI'));
+				}
+				session_redirect($next);
+			} else
+				exit_error(sprintf(_('Project access problem: %s'), $project->getErrorMessage()), 'home');
 		}
-			else
-				exit_error(sprintf(_('Project access problem: %s'),$project->getErrorMessage()),'home');
-		}
-		exit_error(sprintf(_('Project Problem: %s'), $project->getErrorMessage()),'home');
+		exit_error(sprintf(_('Project Problem: %s'), $project->getErrorMessage()), 'home');
 	}
 
 	// Check permissions in case of restricted access




More information about the Fusionforge-commits mailing list