cvs: pear /MDB/MDB ibase.php
| From: | Lukas Smith | Date: | Mon, 08 Sep 2003 11:56:02 +0000 |
| Subject: | cvs: pear /MDB/MDB ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12541@lists.php.net to get a copy of this message | ||
lsmith Mon Sep 8 07:56:02 2003 EDT
Modified files:
/pear/MDB/MDB ibase.php
Log:
cosmetic foxes
Index: pear/MDB/MDB/ibase.php
diff -u pear/MDB/MDB/ibase.php:1.43 pear/MDB/MDB/ibase.php:1.44
--- pear/MDB/MDB/ibase.php:1.43 Wed Sep 3 11:10:20 2003
+++ pear/MDB/MDB/ibase.php Mon Sep 8 07:56:02 2003
@@ -42,7 +42,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.43 2003/09/03 15:10:20 lsmith Exp $
+// $Id: ibase.php,v 1.44 2003/09/08 11:56:02 lsmith Exp $
require_once 'MDB/Common.php';
@@ -348,8 +348,7 @@
$user = $dsninfo['username'];
$pw = $dsninfo['password'];
$dbhost = $dsninfo['hostspec'] ?
- ($dsninfo['hostspec'] . ':' . $database_name) :
- $database_name;
+ ($dsninfo['hostspec'].':'.$database_name) : $database_name;
$params = array();
$params[] = $dbhost;
@@ -372,8 +371,7 @@
} else {
$error_msg = 'Could not connect to FireBird/InterBase server';
}
- return $this->raiseError(MDB_ERROR_CONNECT_FAILED, null, null,
- $error_msg);
+ return $this->raiseError(MDB_ERROR_CONNECT_FAILED, null, null, $error_msg);
}
// }}}
@@ -391,8 +389,8 @@
if ($this->connection != 0) {
if (count(array_diff($this->connected_dsn, $this->dsn)) == 0
- && !strcmp($this->connected_database_name, $database_file)
- && ($this->opened_persistent ==
$this->options['persistent'])
+ && $this->connected_database_name == $database_file
+ && $this->opened_persistent == $this->options['persistent']
) {
return MDB_OK;
}