added more check to the plugin menu
This commit is contained in:
@@ -131,8 +131,10 @@ function mp_fill_fields_value($id) {
|
||||
// add mode irl or online (irl: true | false)
|
||||
$presentiel = get_field("mode", $id);
|
||||
$event->irl = false;
|
||||
if ($presentiel[0] === "En présentiel")
|
||||
$event->irl = true;
|
||||
if (isset($presentiel[0])) {
|
||||
if ($presentiel[0] === "En présentiel")
|
||||
$event->irl = true;
|
||||
}
|
||||
|
||||
// add post url
|
||||
$event->url = get_post_permalink($id);
|
||||
|
||||
Reference in New Issue
Block a user