Minahito
minah****@users*****
2006年 10月 17日 (火) 19:23:03 JST
Index: xoops2jp/html/modules/pm/actions/ReadAction.class.php diff -u xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3.2.1 xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3.2.2 --- xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3.2.1 Thu Oct 5 19:18:14 2006 +++ xoops2jp/html/modules/pm/actions/ReadAction.class.php Tue Oct 17 19:23:03 2006 @@ -1,7 +1,7 @@ <?php /** * @package pm - * @version $Id: ReadAction.class.php,v 1.1.2.3.2.1 2006/10/05 10:18:14 minahito Exp $ + * @version $Id: ReadAction.class.php,v 1.1.2.3.2.2 2006/10/17 10:23:03 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -76,6 +76,7 @@ // $criteria =& new CriteriaCompo(); $criteria->add(new Criteria('msg_id', $this->mPrivMessage->getVar('msg_id'), "<")); + $criteria->add(new Criteria('to_userid', $xoopsUser->get('uid'))); $criteria->setLimit(1); $criteria->setSort('msg_time'); $criteria->setOrder('DESC'); @@ -88,6 +89,7 @@ $criteria =& new CriteriaCompo(); $criteria->add(new Criteria('msg_id', $this->mPrivMessage->getVar('msg_id'), ">")); + $criteria->add(new Criteria('to_userid', $xoopsUser->get('uid'))); $criteria->setLimit(1); $criteria->setSort('msg_time'); $t_objArr =& $pmHandler->getObjects($criteria);