• Dear events-manager team,

    I like your plugin a lot and use it for our non-profit private choir.

    While rearranging an events page, I came across the situation that both conditional placeholders, {all_day} and {not_all_day} showed the same behavior.

    Checking your code, I think that I found the following error in events-manager/classes/em-event.php starting from line 2206:

    elseif ($condition == 'all_day'){
    //is it an all day event
    $show_condition = !empty($this->event_all_day);
    }elseif ($condition == 'not_all_day'){
    //is not an all day event
    $show_condition = !empty($this->event_all_day);
    }

    It would be great to correct this code in order to have the related conditional placeholder work as expected.

    I tried the following solution, which seemed to work for me but of course, I cannot be sure whether this would work under all circumstances:

    elseif ($condition == 'all_day'){
    //is it an all day event
    $show_condition = !empty($this->event_all_day);
    }elseif ($condition == 'not_all_day'){
    //is not an all day event
    $show_condition = empty($this->event_all_day);
    }

    Thanks and kindest regards

    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin coding error for conditional placeholder {not_all_day}’ is closed to new replies.