IndexController.php (PHProjekt-6.2.0) | : | IndexController.php (PHProjekt-6.2.1) | ||
---|---|---|---|---|
skipping to change at line 356 | skipping to change at line 356 | |||
/** | /** | |||
* Keeps the project id in zend registry or reports an error if an empty val ue is supplied. | * Keeps the project id in zend registry or reports an error if an empty val ue is supplied. | |||
* | * | |||
* @param int $projectId The project id to store. | * @param int $projectId The project id to store. | |||
* | * | |||
* @return void | * @return void | |||
*/ | */ | |||
protected function _storeCurrentProjectId($projectId) | protected function _storeCurrentProjectId($projectId) | |||
{ | { | |||
if (empty($projectId)) { | if (empty($projectId)) { | |||
throw new Phprojekt_PublishedException(self::PROJECTID_REQUIRED_TEXT ); | throw new Zend_Controller_Action_Exception(self::PROJECTID_REQUIRED_ TEXT, 400); | |||
} else { | } else { | |||
Phprojekt::setCurrentProjectId($projectId); | Phprojekt::setCurrentProjectId($projectId); | |||
} | } | |||
} | } | |||
/** | /** | |||
* Add to the internal where, the filters set by the user. | * Add to the internal where, the filters set by the user. | |||
* | * | |||
* @param string $where Internal where clause. | * @param string $where Internal where clause. | |||
* | * | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |