Skip to content

Commit

Permalink
minor comment fix in library/sql.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Jun 30, 2012
1 parent 738eb1c commit ecccbde
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/sql.inc
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ class ADODB_mysql_log extends ADODB_mysql
/**
* ADODB Execute function wrapper to ensure proper auditing in OpenEMR.
*
* Stashing the insert ID into lastidado so it doesn't get clobbered when
* we insert into the audit log.
*
* @param string $sql query
* @param array $inputarr binded variables array (optional)
* @return boolean returns false if error
*/
function Execute($sql,$inputarr=false)
{
$retval= parent::Execute($sql,$inputarr);
// Stash the insert ID into lastidado so it doesn't get clobbered when
// we insert into the audit log.
$GLOBALS['lastidado']=$this->Insert_ID();
$outcome= ($retval === false) ? false : true;
auditSQLEvent($sql,$outcome,$inputarr);
Expand Down

0 comments on commit ecccbde

Please sign in to comment.