From: <gem...@li...> - 2012-05-31 09:17:27
|
Revision: 715 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=715&view=rev Author: michieltcs Date: 2012-05-31 09:17:16 +0000 (Thu, 31 May 2012) Log Message: ----------- Fix a few E_NOTICE issues Modified Paths: -------------- trunk/library/classes/Gems/Tracker/Survey.php trunk/library/classes/Gems/User/Form/OrganizationFormAbstract.php Modified: trunk/library/classes/Gems/Tracker/Survey.php =================================================================== --- trunk/library/classes/Gems/Tracker/Survey.php 2012-05-31 09:16:04 UTC (rev 714) +++ trunk/library/classes/Gems/Tracker/Survey.php 2012-05-31 09:17:16 UTC (rev 715) @@ -385,7 +385,7 @@ */ public function getSource() { - if (! $this->_source) { + if (! $this->_source && isset($this->_gemsSurvey['gsu_id_source'])) { $this->_source = $this->tracker->getSource($this->_gemsSurvey['gsu_id_source']); if (! $this->_source) { Modified: trunk/library/classes/Gems/User/Form/OrganizationFormAbstract.php =================================================================== --- trunk/library/classes/Gems/User/Form/OrganizationFormAbstract.php 2012-05-31 09:16:04 UTC (rev 714) +++ trunk/library/classes/Gems/User/Form/OrganizationFormAbstract.php 2012-05-31 09:17:16 UTC (rev 715) @@ -254,7 +254,8 @@ */ public function isValid($data, $disableTranslateValidators = null) { - $this->_user = $this->loader->getUser($data[$this->usernameFieldName], $data[$this->organizationFieldName]); + $this->_user = $this->loader->getUser($data[$this->usernameFieldName], + (isset($data[$this->organizationFieldName]) ? $data[$this->organizationFieldName] : '')); return parent::isValid($data, $disableTranslateValidators); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |