diff --git a/app/classes/Framadate/Utils.php b/app/classes/Framadate/Utils.php
index aca9b9baedabc2e7a668184c2bf41009edc1fa6e..250528b84ab460c0b2ca713c65fbc17ea9ccf5b5 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;
             }
         }