cqpCow 11 kuukautta sitten
vanhempi
commit
f3c4c74ad7
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      app/Service/OperationLogService.php

+ 2 - 0
app/Service/OperationLogService.php

@@ -200,6 +200,8 @@ class OperationLogService extends Service
         $result = array_filter(config('oa'), function ($array) use ($key, $value) {
             return $array[$key] == $value;
         });
+        $result = array_values($result);
+
         if (!isset($result[0]['children'])) return [true, ''];
         $result = $result[0];
         try {