andre 7 mesiacov pred
rodič
commit
d09fbdcfb6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      controllers/QuotaController.php

+ 1 - 1
controllers/QuotaController.php

@@ -21,7 +21,7 @@ class QuotaController {
             echo json_encode(['error' => 'Failed to get user quota', 'details' => implode("\n", $userOutput)]);
             echo json_encode(['error' => 'Failed to get user quota', 'details' => implode("\n", $userOutput)]);
             return;
             return;
         }
         }
-        echo json_encode($userOutput);
+        echo json_decode($userOutput[0]);
     }
     }
     public static function getStats(): void {
     public static function getStats(): void {
         // get all quotas
         // get all quotas