Skip to content

Commit 9322de8

Browse files
committed
Merge tag '2.1.4'
Hotfix release 2.1.4
2 parents 4730ee9 + b5a4953 commit 9322de8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Table/ArticleContent.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* @subpackage AttributeContentArticle
1515
* @author Andreas Dziemba <adziemba@web.de>
1616
* @author Stefan Heimes <stefan_heimes@hotmail.com>
17-
* @copyright 2012-2019 The MetaModels team.
17+
* @author Marc Reimann <reimann@mediendepot-ruhr.de>
18+
* @copyright 2012-2021 The MetaModels team.
1819
* @license https://github.com/MetaModels/attribute_contentarticle/blob/master/LICENSE LGPL-3.0-or-later
1920
* @filesource
2021
*/
@@ -253,7 +254,7 @@ protected function checkAccessToElement($accessId, $ptable, $blnIsPid = false)
253254
if ($strScript != 'contao/page.php' && $strScript != 'contao/file.php') {
254255
if ($blnIsPid) {
255256
$objContent = Database::getInstance()
256-
->prepare('SELECT 1 FROM `$ptable` WHERE id=?')
257+
->prepare('SELECT 1 FROM `' . $ptable . '` WHERE id=?')
257258
->limit(1)
258259
->execute($accessId);
259260
} else {

0 commit comments

Comments
 (0)