Fix php8
This commit is contained in:
parent
fe99e6c136
commit
1cbeaf6ac0
@ -1031,15 +1031,16 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
// Recurring event
|
// Recurring event
|
||||||
$userepeatevent = ($conf->global->MAIN_FEATURES_LEVEL == 2 ? 1 : 0);
|
$userepeatevent = ($conf->global->MAIN_FEATURES_LEVEL == 2 ? 1 : 0);
|
||||||
if ($userepeatevent && !empty($object->recurid)) {
|
if ($userepeatevent) {
|
||||||
// Repeat
|
// Repeat
|
||||||
//print '<tr><td></td><td colspan="3" class="opacitymedium">';
|
//print '<tr><td></td><td colspan="3" class="opacitymedium">';
|
||||||
print ' <div class="opacitymedium inline-block">';
|
print ' <div class="opacitymedium inline-block">';
|
||||||
print img_picto($langs->trans("Recurrence"), 'recurring', 'class="paddingright2"');
|
print img_picto($langs->trans("Recurrence"), 'recurring', 'class="paddingright2"');
|
||||||
print '<input type="hidden" name="recurid" value="'.$object->recurid.'">';
|
print '<input type="hidden" name="recurid" value="'.(empty($object->recurid) ? '' : $object->recurid).'">';
|
||||||
$selectedrecurrulefreq = 'no';
|
$selectedrecurrulefreq = 'no';
|
||||||
$selectedrecurrulebymonthday = '';
|
$selectedrecurrulebymonthday = '';
|
||||||
$selectedrecurrulebyday = '';
|
$selectedrecurrulebyday = '';
|
||||||
|
$reg = array();
|
||||||
if ($object->recurrule && preg_match('/FREQ=([A-Z]+)/i', $object->recurrule, $reg)) {
|
if ($object->recurrule && preg_match('/FREQ=([A-Z]+)/i', $object->recurrule, $reg)) {
|
||||||
$selectedrecurrulefreq = $reg[1];
|
$selectedrecurrulefreq = $reg[1];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -373,6 +373,16 @@ class ActionComm extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $status;
|
public $status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Properties to manage the recurring events
|
||||||
|
*/
|
||||||
|
public $recurid;
|
||||||
|
public $recurrule;
|
||||||
|
public $recurdateend;
|
||||||
|
|
||||||
|
public $calling_duration;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Typical value for a event that is in a todo state
|
* Typical value for a event that is in a todo state
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user