Skip to content
Prev Previous commit
Next Next commit
Fix variable names
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and come-nc committed Nov 23, 2021
commit 9a1df9ddca45a2d20bc748b18a986166e2fa809c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$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;
Expand Down Expand Up @@ -132,7 +132,7 @@ protected function getSelectQuery(string $table): IQueryBuilder {
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;
}
Expand Down