Fix PHP8 warnings
This commit is contained in:
parent
dd6f6ab305
commit
38b103430b
2 changed files with 3 additions and 3 deletions
|
@ -2391,7 +2391,7 @@ $("#rcmfd_new_category").keypress(function(event) {
|
|||
}
|
||||
|
||||
// set new organizer identity
|
||||
if ($organizer !== false && $identity) {
|
||||
if ($organizer !== false && !empty($identity)) {
|
||||
$event['attendees'][$organizer]['name'] = $identity['name'];
|
||||
$event['attendees'][$organizer]['email'] = $identity['email'];
|
||||
}
|
||||
|
@ -2401,7 +2401,7 @@ $("#rcmfd_new_category").keypress(function(event) {
|
|||
unset($event['attendees'][$owner]['rsvp']);
|
||||
}
|
||||
// fallback to the selected identity
|
||||
else if ($organizer === false && $identity) {
|
||||
else if ($organizer === false && !empty($identity)) {
|
||||
$event['attendees'][] = [
|
||||
'role' => 'ORGANIZER',
|
||||
'name' => $identity['name'],
|
||||
|
|
|
@ -292,7 +292,7 @@ class Horde_Date
|
|||
*/
|
||||
public function toDateTime()
|
||||
{
|
||||
$date = new DateTime(null, new DateTimeZone($this->_timezone));
|
||||
$date = new DateTime('now', new DateTimeZone($this->_timezone));
|
||||
$date->setDate($this->_year, $this->_month, $this->_mday);
|
||||
$date->setTime($this->_hour, $this->_min, $this->_sec);
|
||||
return $date;
|
||||
|
|
Loading…
Add table
Reference in a new issue