Skip to content

Commit e15fb24

Browse files
committed
Miglioria minore
1 parent 65b54d3 commit e15fb24

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎config.example.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@
7676
];
7777

7878
// Configura il limite di tempo di esecuzione del file cron.php
79-
$time_limit = '';
79+
$php_time_limit = '';

‎cron.php‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@
3333
use Tasks\Task;
3434

3535
// Rimozione delle limitazioni sull'esecuzione
36-
if ($config['time_limit']) {
37-
$time_limit = $config['time_limit'];
38-
} else {
39-
$time_limit = 86400;
40-
}
41-
set_time_limit($time_limit);
36+
$php_time_limit = $config['php_time_limit'] ?? 86400;
37+
set_time_limit($php_time_limit);
4238
ignore_user_abort(true);
4339

4440
// Chiusura della richiesta alla pagina

0 commit comments

Comments
 (0)