From: <gem...@li...> - 2012-01-24 15:02:19
|
Revision: 421 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=421&view=rev Author: mennodekker Date: 2012-01-24 15:02:13 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Fix for orgId=0 on login with only one org Modified Paths: -------------- trunk/library/classes/Gems/Default/IndexAction.php Modified: trunk/library/classes/Gems/Default/IndexAction.php =================================================================== --- trunk/library/classes/Gems/Default/IndexAction.php 2012-01-24 14:23:03 UTC (rev 420) +++ trunk/library/classes/Gems/Default/IndexAction.php 2012-01-24 15:02:13 UTC (rev 421) @@ -190,6 +190,9 @@ $org = $this->loader->getCurrentUser()->getCurrentOrganizationId(); $orgs = $this->util->getDbLookup()->getOrganizationsForLogin(); $hidden = count($orgs) < 2; + if ($hidden) { + $org = array_shift(array_keys($orgs)); + } } if ($hidden) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |