作者 邓超

body

@@ -28,6 +28,9 @@ class DataArray { @@ -28,6 +28,9 @@ class DataArray {
28 { 28 {
29 $name = strtolower($name); 29 $name = strtolower($name);
30 if($append && is_string($val) && $this->get($name)!==null ){ 30 if($append && is_string($val) && $this->get($name)!==null ){
  31 + if(!isset($this->attribute[$name])){
  32 + $this->attribute[$name] = '';
  33 + }
31 $this->attribute[$name] .= $val; 34 $this->attribute[$name] .= $val;
32 }else{ 35 }else{
33 $this->attribute[$name] = $val; 36 $this->attribute[$name] = $val;