Minahito
minah****@users*****
2006年 4月 28日 (金) 15:45:39 JST
Index: xoops2jp/html/kernel/privmessage.php diff -u xoops2jp/html/kernel/privmessage.php:1.2.8.3 xoops2jp/html/kernel/privmessage.php:1.2.8.4 --- xoops2jp/html/kernel/privmessage.php:1.2.8.3 Mon Jan 2 22:51:45 2006 +++ xoops2jp/html/kernel/privmessage.php Fri Apr 28 15:45:39 2006 @@ -1,5 +1,5 @@ <?php -// $Id: privmessage.php,v 1.2.8.3 2006/01/02 13:51:45 minahito Exp $ +// $Id: privmessage.php,v 1.2.8.4 2006/04/28 06:45:39 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -39,7 +39,7 @@ * @author Kazumi Ono <onoka****@xoops*****> * @copyright copyright (c) 2000-2003 The XOOPS Project (http://www.xoops.org) * - * @version $Revision: 1.2.8.3 $ - $Date: 2006/01/02 13:51:45 $ + * @version $Revision: 1.2.8.4 $ - $Date: 2006/04/28 06:45:39 $ */ class XoopsPrivmessage extends XoopsObject { @@ -84,7 +84,7 @@ * @author Kazumi Ono <onoka****@xoops*****> * @copyright copyright (c) 2000-2003 The XOOPS Project (http://www.xoops.org) * - * @version $Revision: 1.2.8.3 $ - $Date: 2006/01/02 13:51:45 $ + * @version $Revision: 1.2.8.4 $ - $Date: 2006/04/28 06:45:39 $ */ class XoopsPrivmessageHandler extends XoopsObjectHandler { @@ -151,13 +151,17 @@ } else { $sql = sprintf("UPDATE %s SET msg_image = %s, subject = %s, from_userid = %u, to_userid = %u, msg_text = %s, read_msg = %u WHERE msg_id = %u", $this->db->prefix('priv_msgs'), $this->db->quoteString($msg_image), $this->db->quoteString($subject), $from_userid, $to_userid, $this->db->quoteString($msg_text), $read_msg, $msg_id); } - if (!$result = $this->db->query($sql)) { + + $result = $force ? $this->db->queryF($sql) : $this->db->query($sql); + + if (!$result) { return false; } if (empty($msg_id)) { $msg_id = $this->db->getInsertId(); } $pm->assignVar('msg_id', $msg_id); + return true; }