1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 13:44:12 +02:00

[ticket/14793] Fix "A non-numeric value encountered" PHP warning on PHP 7.1+

PHPBB3-14793
This commit is contained in:
rxu
2016-09-22 22:29:18 +07:00
parent 6ae405f743
commit 35c62d1e74
3 changed files with 3 additions and 3 deletions

View File

@@ -286,7 +286,7 @@ class base
$sql = 'DELETE
FROM ' . SEARCH_RESULTS_TABLE . '
WHERE search_time < ' . (time() - $config['search_store_results']);
WHERE search_time < ' . (time() - (int) $config['search_store_results']);
$db->sql_query($sql);
}
}