Skip to content

Commit

Permalink
Evarisk#1128 [SaturneSignature] fix: fetchall warning when no customsql
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-kilyan committed Dec 4, 2024
1 parent b423b7f commit ddd6288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/saturnesignature.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function fetchAll(string $sortorder = '', string $sortfield = '', int $li
foreach ($filter as $key => $value) {
if ($key == 't.rowid') {
$sqlwhere[] = $key . '=' . $value;
} elseif (in_array($this->fields[$key]['type'], ['date', 'datetime', 'timestamp'])) {
} elseif (isset($this->fields[$key]['type']) && in_array($this->fields[$key]['type'], ['date', 'datetime', 'timestamp'])) {
$sqlwhere[] = $key . ' = \'' . $this->db->idate($value) . '\'';
} elseif ($key == 'customsql') {
$sqlwhere[] = $value;
Expand Down

0 comments on commit ddd6288

Please sign in to comment.