Skip to content

Commit

Permalink
alksjdf
Browse files Browse the repository at this point in the history
  • Loading branch information
spark0r committed Jun 7, 2024
1 parent 48d21d4 commit 988a69f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion classes/ETL/DbModel/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,14 @@ public function setSystemQuoteChar($char)

public function quote($identifier)
{
// We can't quote non-strings so....
if (!is_string($identifier)) {
return $identifier;
}

// Don't quote the identifier if it's already been quoted
if (str_starts_with($identifier, $this->systemQuoteChar)
&& (strlen($identifier) - 1) === strrpos($identifier, $this->systemQuoteChar) ) {
&& str_ends_with($identifier, $this->systemQuoteChar)) {
return $identifier;
} else {
return $this->systemQuoteChar . $identifier . $this->systemQuoteChar;
Expand Down

0 comments on commit 988a69f

Please sign in to comment.