diff options
Diffstat (limited to 'app/Controllers/entryController.php')
| -rw-r--r-- | app/Controllers/entryController.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php index f334ce0a6..95ac9ee39 100644 --- a/app/Controllers/entryController.php +++ b/app/Controllers/entryController.php @@ -169,7 +169,9 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { Minz_Request::forward($url_redirect, true); } - @set_time_limit(300); + if (function_exists('set_time_limit')) { + @set_time_limit(300); + } $databaseDAO = FreshRSS_Factory::createDatabaseDAO(); $databaseDAO->optimize(); @@ -188,7 +190,9 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { * @todo should be in feedController */ public function purgeAction(): void { - @set_time_limit(300); + if (function_exists('set_time_limit')) { + @set_time_limit(300); + } $feedDAO = FreshRSS_Factory::createFeedDao(); $feeds = $feedDAO->listFeeds(); |
