8
This commit is contained in:
+11
-1
@@ -853,7 +853,17 @@ if(!function_exists('get_user_rights')){
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
if(!function_exists('array_find')){
|
||||
function array_find(array $array,callable $callbcak):mixed{
|
||||
foreach ($array as $key => $value) {
|
||||
if ($callbcak($value, $key)) {
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
if(!function_exists('__my__template_inputs')){
|
||||
function __my__template_inputs(&$template, &$vars, &$app, &$plugin){
|
||||
|
||||
Reference in New Issue
Block a user