$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditions->getParameters());
- return $statement->fetchColumns();
+ return $statement->fetchAll(\PDO::FETCH_COLUMN);
}
/**
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute([$this->conversationID]);
- return $statement->fetchColumns();
+ return $statement->fetchAll(\PDO::FETCH_COLUMN);
}
/**
".$conditionBuilder;
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditionBuilder->getParameters());
- $notificationObjectIDs = $statement->fetchColumns();
+ $notificationObjectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
if (!empty($notificationObjectIDs)) {
UserNotificationHandler::getInstance()->markAsConfirmed('conversation', 'com.woltlab.wcf.conversation.notification', [WCF::getUser()->userID], $notificationObjectIDs);
".$conditionBuilder;
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditionBuilder->getParameters());
- $notificationObjectIDs = $statement->fetchColumns();
+ $notificationObjectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
if (!empty($notificationObjectIDs)) {
UserNotificationHandler::getInstance()->markAsConfirmed('conversationMessage', 'com.woltlab.wcf.conversation.message.notification', [WCF::getUser()->userID], $notificationObjectIDs);
".$conditionBuilder;
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditionBuilder->getParameters());
- $conversationIDs = $statement->fetchColumns();
+ $conversationIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
if (!empty($conversationIDs)) {
$action = new ConversationAction($conversationIDs, 'delete');
".(!empty($this->sqlOrderBy) ? "ORDER BY ".$this->sqlOrderBy : '');
$statement = WCF::getDB()->prepareStatement($sql, $this->sqlLimit, $this->sqlOffset);
$statement->execute($this->getConditionBuilder()->getParameters());
- $this->objectIDs = $statement->fetchColumns();
+ $this->objectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
}
/**
".(!empty($this->sqlOrderBy) ? "ORDER BY ".$this->sqlOrderBy : '');
$statement = WCF::getDB()->prepareStatement($sql, $this->sqlLimit, $this->sqlOffset);
$statement->execute($this->getConditionBuilder()->getParameters());
- $this->objectIDs = $statement->fetchColumns();
+ $this->objectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
}
/**
".(!empty($this->sqlOrderBy) ? "ORDER BY ".$this->sqlOrderBy : '');
$statement = WCF::getDB()->prepareStatement($sql, $this->sqlLimit, $this->sqlOffset);
$statement->execute($this->getConditionBuilder()->getParameters());
- $this->objectIDs = $statement->fetchColumns();
+ $this->objectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
}
/**
".$conditions;
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditions->getParameters());
- $assignedLabels = $statement->fetchColumns();
+ $assignedLabels = $statement->fetchAll(\PDO::FETCH_COLUMN);
}
WCF::getTPL()->assign(array(
WHERE conversationID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($this->conversation->conversationID));
- $messageIDs = $statement->fetchColumns();
+ $messageIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
$renderedQuotes = MessageQuoteManager::getInstance()->getQuotesByObjectIDs('com.woltlab.wcf.conversation.message', $messageIDs);
if (!empty($renderedQuotes)) {
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditions->getParameters());
- return $statement->fetchColumns();
+ return $statement->fetchAll(\PDO::FETCH_COLUMN);
}
/**
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($conditions->getParameters());
- return $statement->fetchColumns();
+ return $statement->fetchAll(\PDO::FETCH_COLUMN);
}
}