XPressME Integration Kit

Trac

Changeset 496


Ignore:
Timestamp:
Dec 22, 2009, 10:41:14 AM (14 years ago)
Author:
toemon
Message:

XOOPSユーザープロファイルの投稿一覧に誤った投稿が表示されるバグ修正 Fixes #275

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/search.php

    r415 r496  
    2525                } 
    2626                if ($userid) { 
    27                         $userid = xoops_uid_to_wp_uid(intval($userid),$mydirname); 
     27                        $wp_uid = xoops_uid_to_wp_uid(intval($userid),$mydirname); 
    2828                } 
    2929 
     
    5656                        } 
    5757                        if ($userid) { 
    58                                 $where  .= " AND (post_author=".$userid.")"; 
     58                                if ($wp_uid){ 
     59                                        $where  .= " AND (post_author=".$wp_uid.")"; 
     60                                } else { 
     61                                        $where  .= " AND 0 "; 
     62                                } 
    5963                        } 
    6064 
Note: See TracChangeset for help on using the changeset viewer.