Skip to content

Commit

Permalink
Fix wrong database table
Browse files Browse the repository at this point in the history
  • Loading branch information
e-alfred committed Dec 14, 2020
1 parent 4133856 commit 5bb2561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/lib/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public function checkIfKeyExists()
return false;
}

$SQL = 'SELECT `VAL` FROM `*PREFIX*ocdownloader_'.$this->Table.'conf` WHERE `KEY` = ?'
$SQL = 'SELECT `VAL` FROM `*PREFIX*ocdownloader_'.$this->Table.'` WHERE `KEY` = ?'
.(!is_null($this->UID) ? ' AND `UID` = ?' : '') . ' LIMIT 1';
if ($this->DbType == 1) {
$SQL = 'SELECT "VAL" FROM *PREFIX*ocdownloader_'.$this->Table.'conf WHERE "KEY" = ?'
$SQL = 'SELECT "VAL" FROM *PREFIX*ocdownloader_'.$this->Table.' WHERE "KEY" = ?'
.(!is_null($this->UID) ? ' AND "UID" = ?' : '').' LIMIT 1';
}
$Query = \OC_DB::prepare($SQL);
Expand Down

0 comments on commit 5bb2561

Please sign in to comment.