Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
update to 12/24
Browse files Browse the repository at this point in the history
修复parse_field_attr方法的函数定义
ennnnny committed Dec 28, 2015
1 parent 6ed8b26 commit 9e40638
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Application/Common/Common/function.php
Original file line number Diff line number Diff line change
@@ -1221,7 +1221,10 @@ function get_hide_attr($str) {
function parse_field_attr($string) {
if (0 === strpos ( $string, ':' )) {
// 采用函数定义
return eval ( substr ( $string, 1 ) . ';' );
$str = substr($string,1).';';
eval("\$str = $str");
return $str;
// return eval ( substr ( $string, 1 ) . ';' );
}
$array = preg_split ( '/[\s;\r\n]+/', trim ( $string, ",;\r\n" ) );
// dump($array);

0 comments on commit 9e40638

Please sign in to comment.