diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-02 13:13:19 +0330 |
---|---|---|
committer | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-02 13:13:19 +0330 |
commit | a1ef0285f89112b8777eb47f3c34d07f111660b4 (patch) | |
tree | bd8791fd09d6c18e3859d44382de9ef0f8ead10e /core/ajax | |
parent | 09c5f997c6d185d8b23b37a996e7a1130a426d75 (diff) | |
download | nextcloud-server-a1ef0285f89112b8777eb47f3c34d07f111660b4.tar.gz nextcloud-server-a1ef0285f89112b8777eb47f3c34d07f111660b4.zip |
Refactors "strpos" calls in /core to improve code readability.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/update.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |