Skip to content

Commit

Permalink
3rd value in_array: according to change requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Nov 7, 2023
1 parent 38a7894 commit 87ae4d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ protected function initForm()
$this->addItem($te);

if (in_array($this->object->getParentUsageId(),
[PublicationUsage::USAGE_DOWNLOAD, PublicationUsage::USAGE_DOWNLOAD_FALLBACK])) {
[PublicationUsage::USAGE_DOWNLOAD, PublicationUsage::USAGE_DOWNLOAD_FALLBACK], true)) {
$allow_multiple = new ilCheckboxInputGUI($this->parent_gui->txt(self::F_ALLOW_MULTIPLE), self::F_ALLOW_MULTIPLE);
$allow_multiple->setInfo($this->parent_gui->txt(self::F_ALLOW_MULTIPLE . '_info'));
//F_IGNORE_OBJECT_SETTINGS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function initForm()
$this->addItem($te);

if (in_array($this->object->getUsageId(),
[PublicationUsage::USAGE_DOWNLOAD, PublicationUsage::USAGE_DOWNLOAD_FALLBACK])) {
[PublicationUsage::USAGE_DOWNLOAD, PublicationUsage::USAGE_DOWNLOAD_FALLBACK], true)) {
$allow_multiple = new ilCheckboxInputGUI($this->parent_gui->txt(self::F_ALLOW_MULTIPLE), self::F_ALLOW_MULTIPLE);
$allow_multiple->setInfo($this->parent_gui->txt(self::F_ALLOW_MULTIPLE . '_info'));
//F_IGNORE_OBJECT_SETTINGS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ protected function selectPublicationIdForSub()
protected function addSub()
{
$channel = $_POST[xoctPublicationUsageFormGUI::F_CHANNEL];
if (empty($channel) || !in_array($channel, $this->repository->getSubAllowedUsageIds())) {
if (empty($channel) || !in_array($channel, $this->repository->getSubAllowedUsageIds(), true)) {
ilUtil::sendFailure($this->plugin->txt('publication_usage_sub_not_allowed'), true);
$this->ctrl->redirect($this, self::CMD_SELECT_PUBLICATION_ID_SUB);
}
Expand Down

0 comments on commit 87ae4d9

Please sign in to comment.