From a1ef0285f89112b8777eb47f3c34d07f111660b4 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Fri, 2 Jun 2023 13:13:19 +0330 Subject: Refactors "strpos" calls in /core to improve code readability. Signed-off-by: Faraz Samapoor --- core/ajax/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ajax/update.php') diff --git a/core/ajax/update.php b/core/ajax/update.php index dae08ad0882..fc35a5cc4a5 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -44,7 +44,7 @@ use OC\Repair\Events\RepairStartEvent; use OC\Repair\Events\RepairStepEvent; use OC\Repair\Events\RepairWarningEvent; -if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { +if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) { @set_time_limit(0); } -- cgit v1.2.3