diff options
author | Derick Rethans <derick@php.net> | 2002-04-08 06:36:03 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-04-08 06:36:03 +0000 |
commit | cbed0567aa3ad8340ffbcce3d29afe493921b3b2 (patch) | |
tree | 97689c310fbc9ac6d0067e73d571fed4bd6082fe /ext/dba/dba_db2.c | |
parent | 34625daf185b8f60c724aac9e3eff9d3786cd046 (diff) | |
download | php-git-cbed0567aa3ad8340ffbcce3d29afe493921b3b2.tar.gz |
- Fix wrong logic (Thanks to Alan for noticing it)
Diffstat (limited to 'ext/dba/dba_db2.c')
-rw-r--r-- | ext/dba/dba_db2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dba/dba_db2.c b/ext/dba/dba_db2.c index d3ecfa3b67..bb7cf470d2 100644 --- a/ext/dba/dba_db2.c +++ b/ext/dba/dba_db2.c @@ -67,7 +67,7 @@ DBA_OPEN_FUNC(db2) filemode = Z_LVAL_PP(info->argv[0]); } - if(db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) { + if(!db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) { info->dbf = malloc(sizeof(dba_db2_data)); memset(info->dbf, 0, sizeof(dba_db2_data)); ((dba_db2_data *) info->dbf)->dbp = dbp; |