Skip to content

Commit

Permalink
Merge pull request #14224 from carusogabriel/array-key-exists
Browse files Browse the repository at this point in the history
Use array_key_exists instead of in_array + array_keys
  • Loading branch information
MauricioFauth committed Apr 23, 2018
2 parents 8739429 + c1786ee commit 12247e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/Plugins/Export/Helpers/Pdf.php
Expand Up @@ -829,7 +829,7 @@ public function mysqlReport($query)
}

for ($i = 0; $i < $this->numFields; $i++) {
if (!in_array($i, array_keys($colFits))) {
if (!array_key_exists($i, $colFits)) {
$this->tablewidths[$i] = $this->sColWidth + $surplusToAdd;
}
if ($this->display_column[$i] == false) {
Expand Down

0 comments on commit 12247e9

Please sign in to comment.