Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
JSON driver issue
Browse files Browse the repository at this point in the history
Verify that username exists. So that does not display the message that the index will use json driver.
  • Loading branch information
virgiliopontes authored Jun 7, 2018
1 parent 7129131 commit f20bd3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JasperPHP/JasperPHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ public function process($input_file, $output_file = false, $format = array("pdf"
if( count($db_connection) > 0 )
{
$command .= " -t " . $db_connection['driver'];
$command .= " -u " . $db_connection['username'];

if( isset($db_connection['username']) && !empty($db_connection['username']) )
$command .= " -u " . $db_connection['username'];

if( isset($db_connection['password']) && !empty($db_connection['password']) )
$command .= " -p " . $db_connection['password'];

Expand Down

0 comments on commit f20bd3f

Please sign in to comment.