getJournalListing( trim((string)($data['source_type'] ?? '')), trim((string)($data['date_from'] ?? '')), trim((string)($data['date_to'] ?? '')) ); $answer['success'] = 1; } catch (Exception $e) { $answer['message'] = $e->getMessage(); } exit(json_encode($answer));