com web/master: $user was renamed to $cuser in include/login.inc in c659097ec0d0a08327b80c1b32ac0797f35ba5dd also fix the column names:
manage/notes-alert.php
| From: | Ferenc Kovacs | Date: | Wed, 11 Jun 2014 11:45:39 +0000 |
| Subject: | com web/master: $user was renamed to $cuser in include/login.inc in c659097ec0d0a08327b80c1b32ac0797f35ba5dd also fix the column names: manage/notes-alert.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19237@lists.php.net to get a copy of this message | ||
Commit: bdf97a6fd4cc435707bb5c6797842ca817e41f9a
Author: kovacs.ferenc <kovacs.ferenc@ustream.tv> Wed, 11 Jun 2014 13:45:39 +0200
Parents: 0ac39f3249b9c06cea6e50fa985f447cba92a309
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=bdf97a6fd4cc435707bb5c6797842ca817e41f9a
Log:
$user was renamed to $cuser in include/login.inc in c659097ec0d0a08327b80c1b32ac0797f35ba5dd
also fix the column names
Changed paths:
M manage/notes-alert.php
Diff:
diff --git a/manage/notes-alert.php b/manage/notes-alert.php
index 9dc0ce6..d672a51 100644
--- a/manage/notes-alert.php
+++ b/manage/notes-alert.php
@@ -7,7 +7,7 @@ head();
switch ($alert_action) {
case "add_alert" :
- $sql = "INSERT INTO alerts VALUES ('$user', '$sect', NOW())";
+ $sql = "INSERT INTO alerts VALUES ('$cuser', '$sect', NOW())";
if (has_alert($user, $sect))
echo "<b>You already have an alert for this page</b><br />\n";
else
@@ -17,7 +17,7 @@ switch ($alert_action) {
echo "Unknown error while adding alert<br />\n";
break;
case "del_alert" :
- $sql = "delete from alerts where admin='$user' and page='$sect'";
+ $sql = "delete from alerts where user='$cuser' and sect='$sect'";
if (has_alert($user, $sect))
if(do_alert_action($sql))
echo "<b>Alert for page \"$sect\", deleted from your list</b></
br>";