protected function log_error($errors) {
        if (empty($errors)) {
            return;
        }

        foreach ($errors as $code => $langstring) {
            if (!isset($this->errors[$this->linenb])) {
                $this->errors[$this->linenb] = array();
            }
            $this->errors[$this->linenb][$code] = $langstring;
        }
    }
protected function log_error($errors) {
        if (empty($errors)) {
            return;
        }

        foreach ($errors as $code => $langstring) {
            if (!isset($this->errors[$this->linenb])) {
                $this->errors[$this->linenb] = array();
            }
            $this->errors[$this->linenb][$code] = $langstring;
        }
    }
protected function log_error ( $ errors ) { if ( empty ( $ errors ) ) { return ; } foreach ( $ errors as $ code => $ langstring ) { if ( ! isset ( $ this -> errors [ $ this -> linenb ] ) ) { $ this -> errors [ $ this -> linenb ] = array ( ) ; } $ this -> errors [ $ this -> linenb ] [ $ code ] = $ langstring ; } }
Log errors on the current line.

@param array $errors array of errors
@return void
Log errors on the current line .