Skip to content

Commit

Permalink
Dev: psalm check show potential issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Chenu committed Sep 29, 2023
1 parent 4b1a083 commit 3aa6c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/core/LSYii_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ protected function customInit()
throw new CException($dieoutput);
}

if (ini_get("max_execution_time") < App()->getConfig('max_execution_time')) {
if(!@set_time_limit(App()->getConfig('max_execution_time'))) {
if (ini_get("max_execution_time") < intval(App()->getConfig('max_execution_time'))) {
if(!@set_time_limit(intval(App()->getConfig('max_execution_time')))) {
Yii::log("Unable to set time limit to " . App()->getConfig('max_execution_time'), \CLogger::LEVEL_WARNING, 'application.controller');
}
}
Expand Down

0 comments on commit 3aa6c0d

Please sign in to comment.