baidut / php_web_spider

A web crawler written in PHP php网络蜘蛛,信息收集工具A web spider, using php, based on cURL & simple html dom.
http://baidut.github.io/php_web_spider
13 stars 8 forks source link

Undefined index #4

Open baidut opened 9 years ago

baidut commented 9 years ago

Notice: Undefined index: name in D:\Program Files\xampp\htdocs\GitHub\php_web_spider\application\third_party\php_simple_ui\php_simple_ui.php on line 95

baidut commented 9 years ago
    function attr($name,$value=''){
        if($value){
            $this->attr[$name]=$value;
            return $this; // 属性设置支持链式操作
        }
        else return $this->attr[$name]; // isset($this->attr[$name]) // Undefined index: name
    }