Some more replacements of create_function

This commit is contained in:
Rob Lensen
2018-03-19 23:55:21 +01:00
parent 8263335c42
commit 50d8aafc77
5 changed files with 8 additions and 11 deletions
+2 -5
View File
@@ -181,10 +181,7 @@ if (!empty($_GET['keyword']))
'('.
implode(' AND ',
array_map(
create_function(
'$s',
'return "content LIKE \'%$s%\'";'
),
function($s) {return "content LIKE \'%$s%\'"; } ,
preg_split('/[\s,;]+/', $_GET['keyword'] )
)
).
@@ -562,4 +559,4 @@ flush_page_messages();
if (count($comments) > 0) $template->assign_var_from_handle('COMMENT_LIST', 'comment_list');
$template->pparse('comments');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>
?>