Skip to content

Commit

Permalink
search.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 19, 2023
1 parent c4ce328 commit ec8cd00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions potiboard5/search.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function search() {
continue;
}

$key_time= ($logver==="6") ? $time : substr($time,-13);
$key_time= ($logver==="6") ? $time : (strlen($time)>12 ? substr($time,-13) : $time);

$continue_to_search=true;
if($imgsearch){//画像検索の場合
Expand Down Expand Up @@ -159,7 +159,8 @@ public static function search() {
}
}

$time= ($logver==="6") ? (int)substr($time,0,-3) : (int)substr($time,-13,-3);
$time=microtime2time($time,$logver);

$postedtime =$time ? (date("Y/m/d G:i", $time)) : '';
$sub=h($sub);
$com=str_replace('<br />',' ',$com);
Expand Down

0 comments on commit ec8cd00

Please sign in to comment.