Overview
Comment: | Handle stdClass in quote modifiers |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
f68da915c0d00f95e6545bb36b00b9f0 |
User & Date: | bohwaz on 2023-04-12 21:18:45 |
Other Links: | branch diff | manifest | tags |
Context
2023-04-12
| ||
21:19 | Use correct method name for money_html check-in: 3c9586baec user: bohwaz tags: dev | |
21:18 | Handle stdClass in quote modifiers check-in: f68da915c0 user: bohwaz tags: dev | |
20:46 | Improve recus fiscaux, pre-fill form with user data check-in: 48aa12a8bc user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/UserTemplate/Modifiers.php from [0a67eadcd0] to [8bb5993b7c].
︙ | ︙ | |||
277 278 279 280 281 282 283 | { if (null === $in) { return ''; } $db = DB::getInstance(); | | | | | | 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | { if (null === $in) { return ''; } $db = DB::getInstance(); if (is_array($in) || is_object($in)) { return array_map([$db, 'quoteIdentifier'], (array) $in); } return $db->quoteIdentifier($in); } static public function quote_sql($in) { if (null === $in) { return ''; } $db = DB::getInstance(); if (is_array($in) || is_object($in)) { return array_map([$db, 'quote'], (array) $in); } return $db->quote($in); } static public function sql_where(...$args) { |
︙ | ︙ |