cvs: pear /DB_ldap ldap.php
| From: | Ludovico Magnocavallo | Date: | Tue, 15 Jan 2002 16:08:10 +0000 |
| Subject: | cvs: pear /DB_ldap ldap.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1967@lists.php.net to get a copy of this message | ||
ludoo Tue Jan 15 11:08:10 2002 EDT
Modified files:
/pear/DB_ldap ldap.php
Log:
fixed wrong return result from non-search queries
Index: pear/DB_ldap/ldap.php
diff -u pear/DB_ldap/ldap.php:1.1 pear/DB_ldap/ldap.php:1.2
--- pear/DB_ldap/ldap.php:1.1 Tue Jan 15 04:22:26 2002
+++ pear/DB_ldap/ldap.php Tue Jan 15 11:08:10 2002
@@ -20,7 +20,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//
-// $Id: ldap.php,v 1.1 2002/01/15 09:22:26 ludoo Exp $
+// $Id: ldap.php,v 1.2 2002/01/15 16:08:10 ludoo Exp $
//
require_once 'DB/common.php';
@@ -446,19 +446,19 @@
}
if ($action == 'add')
$result = ldap_add($this->connection, $filter, $entry);
- if ($action == 'compare')
+ else if ($action == 'compare')
$result = ldap_add($this->connection, $filter, $attribute, $value);
- if ($action == 'delete')
+ else if ($action == 'delete')
$result = ldap_delete($this->connection, $filter);
- if ($action == 'modify')
+ else if ($action == 'modify')
$result = ldap_modify($this->connection, $filter, $entry);
- if ($action == 'mod_add')
+ else if ($action == 'mod_add')
$result = ldap_mod_add($this->connection, $filter, $entry);
- if ($action == 'mod_del')
+ else if ($action == 'mod_del')
$result = ldap_mod_del($this->connection, $filter, $entry);
- if ($action == 'mod_replace')
+ else if ($action == 'mod_replace')
$result = ldap_mod_replace($this->connection, $filter, $entry);
- if ($action == 'rename')
+ else if ($action == 'rename')
$result = ldap_rename($this->connection, $filter, $newrdn, $newparent,
$deleteoldrdn);
else
return $this->raiseError(DB_ERROR_UNKNOWN_LDAP_ACTION);