com web/master: Fixing quotes in votes div.: manage/user-notes.php
| From: | Sherif Ramadan | Date: | Thu, 13 Dec 2012 16:02:34 +0000 |
| Subject: | com web/master: Fixing quotes in votes div.: manage/user-notes.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15070@lists.php.net to get a copy of this message | ||
Commit: bd65392a3f284193a49ef61d0db22c8fd0b6d7cb
Author: Sherif Ramadan <googleguy@php.net> Thu, 13 Dec 2012 11:02:34 -0500
Parents: 04d9585c4ae91b1ae588d505e302e2fc7cb70d2a
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=bd65392a3f284193a49ef61d0db22c8fd0b6d7cb
Log:
Fixing quotes in votes div.
Changed paths:
M manage/user-notes.php
Diff:
diff --git a/manage/user-notes.php b/manage/user-notes.php
index c9e437c..64035ce 100644
--- a/manage/user-notes.php
+++ b/manage/user-notes.php
@@ -107,11 +107,11 @@ if (!$action) {
if (isset($row['up']) && isset($row['down'])) {
$rating = $row['up'] - $row['down'];
if ($rating < 0) {
- $rating = '<span style="color: red;">$rating</span>';
+ $rating = "<span style=\"color:
red;\">$rating</span>";
} elseif ($rating > 0) {
- $rating = '<span style="color:
green;">$rating</span>';
+ $rating = "<span style=\"color:
green;\">$rating</span>";
} else {
- $rating = '<span style="color:
blue;">$rating</span>';
+ $rating = "<span style=\"color:
blue;\">$rating</span>";
}
$percentage = sprintf('%d%%',((($row['up'] +
$row['down']) ? $row['up'] / ($row['up'] + $row['down']) :
0) * 100));
echo "<div style=\"float: right; clear: both; border: 1px solid gray;
padding: 5px; background-color: lightgray;\">\n".