diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 13:06:08 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 13:06:08 +0200 |
commit | 97a8af7f2519e9ba01c2ff0c16a3102f716c0d13 (patch) | |
tree | 9f6a83c9da6a18ce0cd14f8513c6f647a8edc956 /apps/user_ldap | |
parent | f85d076a4e1df2de8b7b75e379d52fd71807ae01 (diff) | |
download | nextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.tar.gz nextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.zip |
ported oc_db
Diffstat (limited to 'apps/user_ldap')
-rwxr-xr-x | apps/user_ldap/lib_ldap.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index e5b935bfb33..2571ff8d76f 100755 --- a/apps/user_ldap/lib_ldap.php +++ b/apps/user_ldap/lib_ldap.php @@ -137,7 +137,7 @@ class OC_LDAP { static private function ocname2dn($name, $isUser) { $table = self::getMapTable($isUser); - $query = OC_DB::prepare(' + $query = OCP\DB::prepare(' SELECT ldap_dn FROM '.$table.' WHERE owncloud_name = ? @@ -189,7 +189,7 @@ class OC_LDAP { $nameAttribute = self::conf('ldapGroupDisplayName'); } - $query = OC_DB::prepare(' + $query = OCP\DB::prepare(' SELECT owncloud_name FROM '.$table.' WHERE ldap_dn = ? @@ -316,7 +316,7 @@ class OC_LDAP { static private function mappedComponents($isUsers) { $table = self::getMapTable($isUsers); - $query = OC_DB::prepare(' + $query = OCP\DB::prepare(' SELECT ldap_dn, owncloud_name FROM '. $table ); @@ -360,7 +360,7 @@ class OC_LDAP { static private function mapComponent($dn, $ocname, $isUser = true) { $table = self::getMapTable($isUser); - $insert = OC_DB::prepare(' + $insert = OCP\DB::prepare(' INSERT IGNORE INTO '.$table.' (ldap_dn, owncloud_name) VALUES (?,?) @@ -368,7 +368,7 @@ class OC_LDAP { $res = $insert->execute(array($dn, $ocname)); - return !OC_DB::isError($res); + return !OCP\DB::isError($res); } /** |