]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix variable names
authorJoas Schilling <coding@schilljs.com>
Thu, 4 Nov 2021 11:13:18 +0000 (12:13 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 13 Dec 2021 08:39:04 +0000 (09:39 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/user_ldap/lib/Migration/Version1130Date20211102154716.php

index 1d8ec577b9c330425df8a6badc33891c965f1309..dbf53cf66b50cb4c584f9bbfc9d1d1dab1b4d48d 100644 (file)
@@ -57,7 +57,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
                                $column->setLength(4096);
                                $changeSchema = true;
                        }
-                       if ($table === 'ldap_user_mapping') {
+                       if ($tableName === 'ldap_user_mapping') {
                                if ($table->hasIndex('ldap_dn_users')) {
                                        $table->dropIndex('ldap_dn_users');
                                        $changeSchema = true;
@@ -132,7 +132,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
        protected function getUpdateQuery(string $table): IQueryBuilder {
                $q = $this->dbc->getQueryBuilder();
                $q->update($table)
-                       ->set('ldap_dn_hash', $query->createParameter('dn_hash'))
+                       ->set('ldap_dn_hash', $q->createParameter('dn_hash'))
                        ->where($q->expr()->eq('owncloud_name', $q->createParameter('name')));
                return $q;
        }