php5.2 버전대에서 익명함수 처리와 불필요한 코드 주석처리
This commit is contained in:
1 parent
9bfb3da926
commit
89ea991443
2 files changed
+23
-6
No files matched your search
@@ -222,7 +222,14 @@ if (!isset($_POST['wr_subject']) || !trim($_POST['wr_subject']))
|
||||
$wr_seo_title = exist_seo_title_recursive('bbs', generate_seo_title($wr_subject), $write_table, $wr_id);
|
||||
|
||||
$options = array($html,$secret,$mail);
|
||||
$wr_option = implode(',', array_filter($options, function($v) { return trim($v); }));
|
||||
// php 5.3버전 이상부터 익명함수가 가능합니다.
|
||||
// $wr_option = implode(',', array_filter($options, function($v) { return trim($v); }));
|
||||
if(! function_exists('wr_option_filter_trim')) {
|
||||
function wr_option_filter_trim($v){
|
||||
return trim($v);
|
||||
}
|
||||
}
|
||||
$wr_option = implode(',', array_filter($options, 'wr_option_filter_trim'));
|
||||
|
||||
if ($w == '' || $w == 'r') {
|
||||
|
||||
|
||||
Reference in new issue
Block a user