Overview
Comment: | Fix missing defined statement in if |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
aad2c94d028567ce808bc6f5f45e8f76 |
User & Date: | bohwaz on 2023-02-27 19:20:49 |
Other Links: | branch diff | manifest | tags |
Context
2023-02-27
| ||
19:25 | Ignore some modules while they are still in development, remove 'ignore' file to get them listed again check-in: 45cd2fac1f user: bohwaz tags: dev | |
19:20 | Fix missing defined statement in if check-in: aad2c94d02 user: bohwaz tags: dev | |
19:18 | Fix wrong variable name check-in: 83eadf4f80 user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Log.php from [1aaa0e26e7] to [012a4138b7].
︙ | ︙ | |||
163 164 165 166 167 168 169 | $list->orderBy('created', true); $list->setCount('COUNT(logs.id)'); $list->setModifier(function (&$row) { $row->created = \DateTime::createFromFormat('!Y-m-d H:i:s', $row->created); $row->details = $row->details ? json_decode($row->details) : null; $row->type_label = self::ACTIONS[$row->type]; | | | 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | $list->orderBy('created', true); $list->setCount('COUNT(logs.id)'); $list->setModifier(function (&$row) { $row->created = \DateTime::createFromFormat('!Y-m-d H:i:s', $row->created); $row->details = $row->details ? json_decode($row->details) : null; $row->type_label = self::ACTIONS[$row->type]; if (isset($row->details->entity) && defined('Garradin\Entities\\' . $row->details->entity . '::NAME')) { $row->entity_name = constant('Garradin\Entities\\' . $row->details->entity . '::NAME'); } if (isset($row->details->id, $row->details->entity) && constant('Garradin\Entities\\' . $row->details->entity . '::PRIVATE_URL')) { $row->entity_url = sprintf(constant('Garradin\Entities\\' . $row->details->entity . '::PRIVATE_URL'), $row->details->id); } }); return $list; } } |