* Fix code error.

This commit is contained in:
孙广明
2021-12-02 11:05:47 +08:00
parent 4b94092737
commit ed35de7a0f
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -327,10 +327,10 @@ class projectreleaseModel extends model
* Judge btn is clickable or not.
*
* @param int $release
* @param int $action
* @param string $action
* @static
* @access public
* @return void
* @return bool
*/
public static function isClickable($release, $action)
{
+2 -3
View File
@@ -479,10 +479,10 @@ class releaseModel extends model
* Judge btn is clickable or not.
*
* @param int $release
* @param int $action
* @param string $action
* @static
* @access public
* @return void
* @return bool
*/
public static function isClickable($release, $action)
{
@@ -505,7 +505,6 @@ class releaseModel extends model
$this->app->loadConfig('mail');
/* Load module and get vars. */
$this->loadModel('action');
$users = $this->loadModel('user')->getPairs('noletter');
$release = $this->getByID($releaseID);
$suffix = empty($release->product) ? '' : ' - ' . $this->loadModel('product')->getById($release->product)->name;