diff options
| author | 2023-12-06 08:51:42 +0100 | |
|---|---|---|
| committer | 2023-12-06 08:51:42 +0100 | |
| commit | 8bff77c45ef87322fce0854e6f189f76604f5b93 (patch) | |
| tree | 18190bbc6fddab8e7f509a79ef75b27c6c2f7497 /app/Models/DatabaseDAO.php | |
| parent | 133892a89e065cd98635c21bf5a886cfed08aeb8 (diff) | |
Fix export (#5927)
Regression from https://github.com/FreshRSS/FreshRSS/pull/5830
Diffstat (limited to 'app/Models/DatabaseDAO.php')
| -rw-r--r-- | app/Models/DatabaseDAO.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Models/DatabaseDAO.php b/app/Models/DatabaseDAO.php index 05ca98355..7dbe1db3f 100644 --- a/app/Models/DatabaseDAO.php +++ b/app/Models/DatabaseDAO.php @@ -407,4 +407,17 @@ SQL; } } } + + /** + * Ensure that some PDO columns are `string` and not `bigint`. + * @param array<string|int|null> $table + * @param array<string> $columns + */ + public static function pdoString(array &$table, array $columns): void { + foreach ($columns as $column) { + if (isset($table[$column])) { + $table[$column] = (string)$table[$column]; + } + } + } } |
