Skip to content

Commit

Permalink
Update mysqli.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 7, 2019
1 parent 414bac6 commit b4bdbda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions htdocs/core/db/mysqli.class.php
Expand Up @@ -256,9 +256,8 @@ public function query($query, $usesavepoint = 0, $type = 'auto')

$query = trim($query);

if (empty($query)) return null;

if (! in_array($query, array('BEGIN','COMMIT','ROLLBACK'))) dol_syslog('sql='.$query, LOG_DEBUG);
if (empty($query)) return false; // Return false = error if empty request

if (! $this->database_name)
{
Expand Down

0 comments on commit b4bdbda

Please sign in to comment.