com web/bugs: Fix notices (undefined constants): www/stats.php
| From: | Hannes Magnusson | Date: | Thu, 06 Feb 2014 01:45:28 +0000 |
| Subject: | com web/bugs: Fix notices (undefined constants): www/stats.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-18306@lists.php.net to get a copy of this message | ||
Commit: 1e236800a8acf606e850c503bb9bf23110b1775d
Author: Hannes Magnusson <bjori@mongodb.com> Wed, 5 Feb 2014 17:44:59 -0800
Parents: 731a0e3492c08374b66c891f890615471c4bcce9
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=1e236800a8acf606e850c503bb9bf23110b1775d
Log:
Fix notices (undefined constants)
Changed paths:
M www/stats.php
Diff:
diff --git a/www/stats.php b/www/stats.php
index 3762f6f..423c3ef 100644
--- a/www/stats..php
+++ b/www/stats.php
@@ -164,11 +164,11 @@ while ($row = $result->fetchRow(MDB2_FETCHMODE_ASSOC)) {
echo "</table>\n\n";
}
echo "<table style='float:left; margin-right:20px'>\n".
- "<tr><th colspan='2'
class='bug_header'>{$row[d]}</th></tr>\n";
+ "<tr><th colspan='2'
class='bug_header'>{$row["d"]}</th></tr>\n";
$last_date = $row['d'];
}
- $version = htmlentities($row[formatted_version], ENT_QUOTES, 'UTF-8');
- echo "<tr><td class='bug_head'>{$version}</td><td
class='bug_bg1'>{$row[quant]}</td></tr>\n";
+ $version = htmlentities($row["formatted_version"], ENT_QUOTES, 'UTF-8');
+ echo "<tr><td class='bug_head'>{$version}</td><td
class='bug_bg1'>{$row["quant"]}</td></tr>\n";
}
if ($last_date) {
echo "</table>\n";