Type casting can be used

Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
Yuriy Pikhtarev 2018-06-24 15:23:40 +03:00
commit b08f6e898b
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
7 changed files with 14 additions and 14 deletions

View file

@ -313,7 +313,7 @@ if (!isset($_REQUEST['dosearch'])) {
$where_sql = '';
$where_sql .= ($ip_in_sql != '') ? "poster_ip IN ($ip_in_sql)" : '';
$where_sql .= ($ip_like_sql != '') ? ($where_sql != '') ? " OR $ip_like_sql" : "$ip_like_sql" : '';
$where_sql .= ($ip_like_sql != '') ? ($where_sql != '') ? " OR $ip_like_sql" : (string)$ip_like_sql : '';
if (!$where_sql) {
bb_die('invalid request');