summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwww-ssl/nonpublic/messages.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/www-ssl/nonpublic/messages.php b/www-ssl/nonpublic/messages.php
index 596dbe86..09aa9b7f 100755
--- a/www-ssl/nonpublic/messages.php
+++ b/www-ssl/nonpublic/messages.php
@@ -46,6 +46,12 @@ switch( $_GET["action"])
echo "<br><br><a href=\"?action=MarkRead&Datum=". mysql_result( $erg, $i, "Datum" ).
"\">". Get_Text("pub_messages_MarkRead"). "</a>";
}
+ else
+ {
+ if( mysql_result( $erg, $i, "isRead")=="N")
+ echo Get_Text("pub_messages_NotRead");
+ }
+
echo "</td>\n";
echo "</tr>\n";
}
@@ -59,7 +65,7 @@ switch( $_GET["action"])
echo "\t<td></td>\n";
// Listet alle Nicks auf
echo "\t<td><select name=\"RUID\">\n";
- $usql="select * from User order by Nick";
+ $usql="SELECT * FROM `User` WHERE (`UID`!='". $_SESSION["UID"] ."') ORDER BY `Nick`";
$uErg = mysql_query($usql, $con);
$urowcount = mysql_num_rows($uErg);
for ($k=0; $k<$urowcount; $k++)
@@ -94,7 +100,7 @@ switch( $_GET["action"])
case "MarkRead":
$SQL = "UPDATE `Messages` SET `isRead` = 'Y' ".
- "WHERE `Datum` = '". $_GET["Datum"]. "' AND `SUID`=". $_SESSION["UID"]. " ".
+ "WHERE `Datum` = '". $_GET["Datum"]. "' AND `RUID`=". $_SESSION["UID"]. " ".
"LIMIT 1 ;";
$Erg = mysql_query($SQL, $con);
if ($Erg == 1)