mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Use str_contains and similar instead of strpos
This commit is contained in:
parent
508de10191
commit
1dbf36b86b
16 changed files with 18 additions and 19 deletions
|
@ -215,7 +215,7 @@ class PermissionManager
|
|||
//Set every op listed in also Set
|
||||
foreach ($op['alsoSet'] as $set_also) {
|
||||
//If the alsoSet value contains a dot then we set the operation of another permission
|
||||
if (false !== strpos($set_also, '.')) {
|
||||
if (str_contains($set_also, '.')) {
|
||||
[$set_perm, $set_op] = explode('.', $set_also);
|
||||
} else {
|
||||
//Else we set the operation of the same permission
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue