summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-30 22:42:51 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-30 22:42:51 +0000
commit3a051ec08d5766d5f3f74ff47ae7afc2e1a8fd3c (patch)
treeb2601d5f41d8e93bb821fb4aa5f3eb6239b3561a
parentbf88f9c69beddd3d0559648ec9db37f34bd64300 (diff)
bugfix
git-svn-id: svn://svn.cccv.de/engel-system@100 29ba0400-6e00-0410-a75a-ca02368028f8
-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)