Changeset 89539 in spip-zone


Ignore:
Timestamp:
May 19, 2015, 4:51:46 PM (4 years ago)
Author:
fil@…
Message:

gestion d'erreur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/lib/Sphinx/SphinxQL/SphinxQL.php

    r88110 r89539  
    1111        private $sql; // objet MySQLi
    1212
    13         public function __construct($host = '127.0.0.1', $port = 9306) {
     13        public function __construct($host = '127.0.0.1', $port = 19306) {
    1414                $this->host = $host;
    1515                $this->port = $port;
     
    2727                        return false;
    2828                }
    29                 return true;
     29                return !!!$this->sql->connect_error;
    3030        }
    3131
Note: See TracChangeset for help on using the changeset viewer.