cqpCow преди 11 месеца
родител
ревизия
f3c4c74ad7
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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 {