From: <gem...@li...> - 2012-04-26 12:07:44
|
Revision: 640 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=640&view=rev Author: matijsdejong Date: 2012-04-26 12:07:35 +0000 (Thu, 26 Apr 2012) Log Message: ----------- When the organization id is empty, the cookie should not be set because it throws an exception Modified Paths: -------------- trunk/library/classes/Gems/User/Organization.php Modified: trunk/library/classes/Gems/User/Organization.php =================================================================== --- trunk/library/classes/Gems/User/Organization.php 2012-04-26 11:36:42 UTC (rev 639) +++ trunk/library/classes/Gems/User/Organization.php 2012-04-26 12:07:35 UTC (rev 640) @@ -339,7 +339,7 @@ { $organizationId = $this->getId(); - if (! Gems_Cookies::setOrganization($organizationId, $this->basepath->getBasePath())) { + if ($organizationId && (! Gems_Cookies::setOrganization($organizationId, $this->basepath->getBasePath()))) { throw new Exception('Cookies must be enabled for this site.'); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |