diff --git a/app/classes/Framadate/Utils.php b/app/classes/Framadate/Utils.php index aca9b9b..250528b 100644 --- a/app/classes/Framadate/Utils.php +++ b/app/classes/Framadate/Utils.php @@ -112,8 +112,7 @@ class Utils { } if ($vote_id != '') { $url .= '/vote/' . $vote_id . "#edit"; - } - if ($action != null && $action_value != null) { + } elseif ($action != null && $action_value != null) { $url .= '/action/' . $action . '/' . $action_value; } } else { @@ -124,8 +123,7 @@ class Utils { } if ($vote_id != '') { $url .= '&vote=' . $vote_id . "#edit"; - } - if ($action != null && $action_value != null) { + } elseif ($action != null && $action_value != null) { $url .= '&' . $action . "=" . $action_value; } }