+
Skip to content

Conversation

amulet1
Copy link
Contributor

@amulet1 amulet1 commented Jul 8, 2025

No description provided.

@amulet1
Copy link
Contributor Author

amulet1 commented Jul 8, 2025

@ralflang, please merge.

@amulet1
Copy link
Contributor Author

amulet1 commented Aug 6, 2025

@TDannhauer, please could you review/merge?

@TDannhauer TDannhauer requested a review from Copilot August 6, 2025 17:12
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes undefined variable issues in the vacation functionality by correcting variable references and assignments.

  • Replaces undefined $start and $end variables with empty arrays in Form/Vacation.php
  • Corrects variable name from $notification to $notify in Basic/Vacation.php

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
lib/Form/Vacation.php Fixes undefined variable usage by passing empty arrays instead of undefined variables
lib/Basic/Vacation.php Corrects variable assignment to use the properly defined $notify variable

Comment on lines +105 to +106
$start = $this->_start->getInfo($vars, []);
$end = $this->_end->getInfo($vars, []);
Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing an empty array as the second parameter may not provide the expected default behavior. Consider investigating what the original intent was for the second parameter - it might need a specific default value rather than an empty array.

Suggested change
$start = $this->_start->getInfo($vars, []);
$end = $this->_end->getInfo($vars, []);
$start = $this->_start->getInfo($vars, $this->_errors);
$end = $this->_end->getInfo($vars, $this->_errors);

Copilot uses AI. Check for mistakes.

Comment on lines +105 to +106
$start = $this->_start->getInfo($vars, []);
$end = $this->_end->getInfo($vars, []);
Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing an empty array as the second parameter may not provide the expected default behavior. Consider investigating what the original intent was for the second parameter - it might need a specific default value rather than an empty array.

Suggested change
$start = $this->_start->getInfo($vars, []);
$end = $this->_end->getInfo($vars, []);
$start = $this->_start->getInfo($vars, null);
$end = $this->_end->getInfo($vars, null);

Copilot uses AI. Check for mistakes.

@TDannhauer TDannhauer merged commit 5ecb6e7 into horde:FRAMEWORK_6_0 Aug 13, 2025
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载