Taiwan
|
Rev. 381
Can't edit any posts.
show mysql error!
File: source/include/post/post_editpost.php Line:16-20
- $orig = DB::fetch_first("SELECT m.adminid, p.first, p.authorid, p.author, p.dateline, p.anonymous, p.invisible, p.htmlon FROM ".DB::table($posttable)." p
- LEFT JOIN ".DB::table('common_member')." m ON m.uid=p.authorid
- WHERE pid='$pid' AND tid='$_G[tid]' AND fid='$_G[fid]'");
Copy the Code Lost this line $posttable = getposttablebytid($_G['tid']);
Should be.
- $posttable = getposttablebytid($_G['tid']);
- $orig = DB::fetch_first("SELECT m.adminid, p.first, p.authorid, p.author, p.dateline, p.anonymous, p.invisible, p.htmlon FROM ".DB::table($posttable)." p
- LEFT JOIN ".DB::table('common_member')." m ON m.uid=p.authorid
- WHERE pid='$pid' AND tid='$_G[tid]' AND fid='$_G[fid]'");
Copy the Code |
|