com web/bugs: Fix undefined index if bug status not set: www/search.php
| From: | Peter Kokot | Date: | Sun, 05 May 2019 14:04:48 +0000 |
| Subject: | com web/bugs: Fix undefined index if bug status not set: www/search.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28019@lists.php.net to get a copy of this message | ||
Commit: 6d59ead00cdd3df0526fd5f1027b957717956f76
Author: Peter Kokot <peterkokot@gmail.com> Sun, 5 May 2019 16:04:48 +0200
Parents: 35463d9fa397f963443f75c42f54e1a7bbfc5432
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=6d59ead00cdd3df0526fd5f1027b957717956f76
Log:
Fix undefined index if bug status not set
Changed paths:
M www/search.php
Diff:
diff --git a/www/search.php b/www/search.php
index d99f20e..1edd193 100644
--- a/www/search.php
+++ b/www/search.php
@@ -150,7 +150,7 @@ if (isset($_GET['cmd']) && $_GET['cmd'] ==
'display')
<?php
foreach ($result as $row) {
- $status_class = $row['private'] == 'Y' ? 'Sec' :
$tla[$row['status']];
+ $status_class = $row['private'] == 'Y' ? 'Sec' :
($tla[$row['status']] ?? '');
echo ' <tr valign="top" class="' , $status_class,
'">' , "\n";