Changeset 349


Ignore:
Timestamp:
04/13/10 09:14:07 (9 years ago)
Author:
sander
Message:

Fix curl_error() problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/models/validator.php

    r348 r349  
    222222                if ($this->response === false) { 
    223223                        $this->state = Validator::STATE_ERROR; 
    224                         $this->response = sprintf('Officeotron: Could not get a response from %s. Error %d: %s', $endpoint, curl_errno(), curl_error()); 
     224                        $this->response = sprintf('Officeotron: Could not get a response from %s. Error %d: %s', $endpoint, curl_errno($curl), curl_error($curl)); 
    225225                        $this->log($this->response); 
    226226                        return; 
     
    298298                if ($this->response === false) { 
    299299                        $this->state = Validator::STATE_ERROR; 
    300                         $this->response = sprintf('ODFToolkit: Could not get a response from %s. Error %d: %s', $endpoint, curl_errno(), curl_error()); 
     300                        $this->response = sprintf('ODFToolkit: Could not get a response from %s. Error %d: %s', $endpoint, curl_errno($curl), curl_error($curl)); 
    301301                        $this->log($this->response); 
    302302                        return; 
Note: See TracChangeset for help on using the changeset viewer.