From: <var...@us...> - 2012-08-31 11:21:11
|
Revision: 8274 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8274&view=rev Author: vargenau Date: 2012-08-31 11:21:00 +0000 (Fri, 31 Aug 2012) Log Message: ----------- Use isset Modified Paths: -------------- trunk/g Modified: trunk/g =================================================================== --- trunk/g 2012-06-11 09:37:49 UTC (rev 8273) +++ trunk/g 2012-08-31 11:21:00 UTC (rev 8274) @@ -56,7 +56,15 @@ use_javascript('/scripts/jquery-formnavigate/jquery.FormNavigate-min.js'); } -if (!$group_id || !$project) { +if (isset($group_id) && $group_id) { + if (! isset($project) || ! $project) { + $project = group_get_object($group_id); + } +} elseif(isset($project) && is_object($project)) { + $group_id = $project->getID(); +} + +if (! isset($group_id) || ! isset($project)) { exit_no_group(); } else if (!($project->usesPlugin("wiki"))) { exit_disabled('home'); @@ -230,7 +238,6 @@ $user_name = $user->getRealName(); $_SESSION['user_id'] = $user_name; $_SERVER['PHP_AUTH_USER'] = $user_name; - $HTTP_SERVER_VARS['PHP_AUTH_USER'] = $user_name; } } else { // clear out the globals, just in case... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |