[web-bugs] master: fix a fatal error when passed null to e()
| From: | peterdd via Nikita Popov | Date: | Wed, 01 Sep 2021 22:03:50 +0000 |
| Subject: | [web-bugs] master: fix a fatal error when passed null to e() | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29572@lists.php.net to get a copy of this message | ||
Author: peterdd (peterdd)
Committer: Nikita Popov (nikic)
Date: 2021-09-02T00:04:20+02:00
Commit: https://github.com/php/web-bugs/commit/98896cb95e905892d929bf8fc240c004ae25c52c
Raw diff: https://github.com/php/web-bugs/commit/98896cb95e905892d929bf8fc240c004ae25c52c.diff
fix a fatal error when passed null to e()
Fatal error: Uncaught TypeError: Argument 1 passed to App\Template\Context::e() must be of the type
string, null given, called in /srv/www/htdocs/web-bugs/templates/pages/admin/database_status.php on
line 64 and defined in /srv/www/htdocs/web-bugs/src/Template/Context.php:159
Changed paths:
M templates/pages/admin/database_status.php
Diff:
diff --git a/templates/pages/admin/database_status.php b/templates/pages/admin/database_status.php
index a1237cee..16aed897 100644
--- a/templates/pages/admin/database_status.php
+++ b/templates/pages/admin/database_status.php
@@ -61,7 +61,7 @@
<td class="bug_bg1"><?= $tableStatus['Data_free'];
?></td>
<td class="bug_bg0"><?=
$tableStatus['Auto_increment']; ?></td>
<td class="bug_bg1"><?=
$this->e($tableStatus['Create_time']); ?></td>
- <td class="bug_bg0"><?=
$this->e($tableStatus['Update_time']); ?></td>
+ <td class="bug_bg0"><?=
$this->e($tableStatus['Update_time']?:''); ?></td>
<td class="bug_bg1"><?php echo
$tableStatus['Check_time'] ? $this->e($tableStatus['Check_time']) :
''; ?></td>
<td class="bug_bg0"><?=
$this->e($tableStatus['Collation']); ?></td>
<td class="bug_bg1"><?php echo
$tableStatus['Checksum'] ? $this->e($tableStatus['Checksum']) : '';
?></td>