From 6710a636170c73162560c94629656ddde85c7fa8 Mon Sep 17 00:00:00 2001 From: svncommit Date: Mon, 5 Jan 2009 10:13:08 +0000 Subject: Add required parameters to raise_error() calls. --- program/include/rcube_ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include/rcube_ldap.php') diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index ab0ef481e..d56ea9b17 100644 --- a/program/include/rcube_ldap.php +++ b/program/include/rcube_ldap.php @@ -71,7 +71,7 @@ class rcube_ldap global $RCMAIL; if (!function_exists('ldap_connect')) - raise_error(array('type' => 'ldap', 'message' => "No ldap support in this installation of PHP"), true); + raise_error(array('code' => 100, 'type' => 'ldap', 'message' => "No ldap support in this installation of PHP"), true); if (is_resource($this->conn)) return true; @@ -122,7 +122,7 @@ class rcube_ldap $this->ready = $this->bind($this->prop['bind_dn'], $this->prop['bind_pass']); } else - raise_error(array('type' => 'ldap', 'message' => "Could not connect to any LDAP server, tried $host:{$this->prop[port]} last"), true); + raise_error(array('code' => 100, 'type' => 'ldap', 'message' => "Could not connect to any LDAP server, tried $host:{$this->prop[port]} last"), true); // See if the directory is writeable. if ($this->prop['writable']) { -- cgit v1.2.3