Commit 7ae9756c authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixed #12674 / QFQ Function subheader: skip deleted

parent c500b6c1
Pipeline #5339 passed with stages
in 4 minutes and 44 seconds
...@@ -1133,7 +1133,7 @@ class Database { ...@@ -1133,7 +1133,7 @@ class Database {
$column = (is_numeric($uid)) ? 'uid' : 'subheader'; $column = (is_numeric($uid)) ? 'uid' : 'subheader';
$dbT3 = $this->store->getVar(SYSTEM_DB_NAME_T3, STORE_SYSTEM); $dbT3 = $this->store->getVar(SYSTEM_DB_NAME_T3, STORE_SYSTEM);
$sql = "SELECT * FROM `$dbT3`.`tt_content` WHERE `$column` = ?"; $sql = "SELECT * FROM `$dbT3`.`tt_content` WHERE `$column` = ? AND `deleted` = 0 AND `hidden` = 0 ";
$arr = $this->sql($sql, ROW_EXPECT_1, [$uid], 'Function "' . $column . '=' . $uid . '" not found or more than one found.'); $arr = $this->sql($sql, ROW_EXPECT_1, [$uid], 'Function "' . $column . '=' . $uid . '" not found or more than one found.');
return ($arr); return ($arr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment