歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 16, 2024, 07:44:51 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  核心補強  |  lifetypeuserdataprovider.class.php 的一个潜在的bug « 上篇主題 下篇主題 »
頁: [1]
作者 主題: lifetypeuserdataprovider.class.php 的一个潜在的bug  (閱讀 11662 次)
maomaode
一般會員
***
文章: 115


檢視個人資料
« 於: 十一月 19, 2006, 06:29:44 下午 »

class/dao/userdata/lifetypeuserdataprovider.class.php 中的两个方法:
        function getNumUsers
        function getAllUsers
有这么一段:
引用
          if( $status != USER_STATUS_ALL )
             $where = "status = '".Db::qstr($status)."'";

          if( $searchTerms != "" ) {
            if( $where != "" )
               $where .= " AND ";
              $where = $this->getSearchConditions( $searchTerms );
         }
不知道最后一个
引用
$where =
是否应该写为:
引用
$where .=
已記錄

我的blog:
               http://maomaode.bokeland.com
Blog搬家/同步
               http://banjia.bokeland.com
panying
新手見習
*
文章: 39


檢視個人資料
« 回覆文章 #1 於: 四月 07, 2007, 12:57:59 上午 »

在我的vbb user provideer里面是这么写的

引用
           if ($searchTerms != "")
           {
             if ($where != "")
               $where = $where." AND ".$this->getSearchConditions($searchTerms);
             else
               $where = $this->getSearchConditions($searchTerms);
           }

当时好像我确实认为这个是bug,但是忘记回报了
已記錄

markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #2 於: 四月 07, 2007, 01:22:04 上午 »

那就去 bugs.lifetype.net 回報一下吧! :D

我會馬上把他加上去的。

Mark
已記錄

頁: [1]
LifeType 中文開發論壇  |  開發  |  核心補強  |  lifetypeuserdataprovider.class.php 的一个潜在的bug « 上篇主題 下篇主題 »
    前往: