mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 14:45:43 -07:00
Fix some bugs with MySQL strict mode
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
b02fe1dcc5
commit
5429a3bcb8
8 changed files with 34 additions and 16 deletions
|
@ -571,7 +571,7 @@ $this_date = bb_date(TIMENOW, 'md', false);
|
|||
for ($i = 0; $i < $total_posts; $i++) {
|
||||
$poster_id = $postrow[$i]['user_id'];
|
||||
$poster = ($poster_id == GUEST_UID) ? $lang['GUEST'] : $postrow[$i]['username'];
|
||||
$poster_birthday = ($poster_id != GUEST_UID && !empty($postrow[$i]['user_birthday']) && $postrow[$i]['user_birthday'] != '0000-00-00')
|
||||
$poster_birthday = ($poster_id != GUEST_UID && !empty($postrow[$i]['user_birthday']) && $postrow[$i]['user_birthday'] != '1900-01-01')
|
||||
? date('md', strtotime($postrow[$i]['user_birthday'])) : '';
|
||||
$post_date = bb_date($postrow[$i]['post_time'], $bb_cfg['post_date_format']);
|
||||
$max_post_time = max($max_post_time, $postrow[$i]['post_time']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue