Browse Source

Update pm.php

tags/6.1.8
tianya 2 years ago
parent
commit
e18066aee6
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      src/user/pm.php

+ 0
- 7
src/user/pm.php View File

@@ -24,13 +24,6 @@ if (!isset($dopost)) {
CheckNotAllow();
$state = empty($state) ? 0 : intval($state);
if ($dopost == 'read') {
$sql = "SELECT * FROM `#@__member_friends` WHERE mid='{$cfg_ml->M_ID}' AND ftype!='-1' ORDER BY addtime DESC LIMIT 20";
$friends = array();
$dsql->SetQuery($sql);
$dsql->Execute();
while ($row = $dsql->GetArray()) {
$friends[] = $row;
}
$id = intval($id);
$row = $dsql->GetOne("SELECT * FROM `#@__member_pms` WHERE id='$id' AND (fromid='{$cfg_ml->M_ID}' OR toid='{$cfg_ml->M_ID}')");
if (!is_array($row)) {


Loading…
Cancel
Save