mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12120)
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!Auth::user()->hasGlobalAdmin()) {
|
||||
$response = array(
|
||||
if (! Auth::user()->hasGlobalAdmin()) {
|
||||
$response = [
|
||||
'status' => 'error',
|
||||
'message' => 'Need to be admin',
|
||||
);
|
||||
];
|
||||
echo _json_encode($response);
|
||||
exit;
|
||||
}
|
||||
@ -20,10 +20,10 @@ if (is_numeric($customoid_id) && $customoid_id > 0) {
|
||||
}
|
||||
if ($oid['customoid_passed'] == 1) {
|
||||
$cpassed = true;
|
||||
$passed = 'on';
|
||||
$passed = 'on';
|
||||
} else {
|
||||
$cpassed = false;
|
||||
$passed = '';
|
||||
$passed = '';
|
||||
}
|
||||
|
||||
header('Content-type: application/json');
|
||||
|
Reference in New Issue
Block a user