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; }