mirror of
https://github.com/cosmocode/dokuwiki-plugin-struct.git
synced 2025-07-29 11:59:24 +00:00
fix dynamic table access. closes #659
Table names can not be passed as parameters via PDO.
This commit is contained in:
@ -24,11 +24,15 @@ class AccessTableGlobal extends AccessTable
|
||||
if (!$this->rid) return; // no data
|
||||
|
||||
/** @noinspection SqlResolve */
|
||||
$sql = 'DELETE FROM ? WHERE rid = ?';
|
||||
$this->sqlite->query($sql, 'data_' . $this->schema->getTable(), $this->rid);
|
||||
$this->sqlite->query($sql, 'multi_' . $this->schema->getTable(), $this->rid);
|
||||
$sql = 'DELETE FROM data_' . $this->schema->getTable() . ' WHERE rid = ?';
|
||||
$this->sqlite->query($sql, $this->rid);
|
||||
$sql = 'DELETE FROM multi_' . $this->schema->getTable() . ' WHERE rid = ?';
|
||||
$this->sqlite->query($sql, $this->rid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function getLastRevisionTimestamp()
|
||||
{
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user