From 5c8007130446f5381d81a661396ded328dbb1c02 Mon Sep 17 00:00:00 2001 From: omoh09 Date: Sun, 31 Oct 2021 12:40:23 +0100 Subject: [PATCH] fix sidebar --- app/Services/SidebarService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/SidebarService.php b/app/Services/SidebarService.php index c6c478d9..79e95f53 100644 --- a/app/Services/SidebarService.php +++ b/app/Services/SidebarService.php @@ -67,7 +67,7 @@ public function sidebar($dataType) } public static function jsonEncoded($data, $dataType){ - $response = isset($data) && $dataType == null ? $data->toJson(): $data; + $response = isset($data) && $dataType != null ? $data->toJson(): $data; return $response; }