diff --git a/app/classes/Framadate/Utils.php b/app/classes/Framadate/Utils.php
index 8249c44668d1c95b7ee848103de5e554f756a367..26d64bb490dad2fcd0b95fa54b73532928b3c5e5 100644
--- a/app/classes/Framadate/Utils.php
+++ b/app/classes/Framadate/Utils.php
@@ -88,7 +88,7 @@ class Utils {
      */
     public static function getUrlSondage($id, $admin = false, $vote_id = '', $action = null, $action_value = null) {
         // URL-Encode $action_value
-        $action_value = $action_value === null ? null : Utils::base64url_encode($action_value);
+        $action_value = $action_value ? null : Utils::base64url_encode($action_value);
 
         if (URL_PROPRE) {
             if ($admin === true) {
@@ -98,8 +98,8 @@ class Utils {
             }
             if ($vote_id !== '') {
                 $url .= '/vote/' . $vote_id . "#edit";
-            } elseif ($action !== null) {
-                if ($action_value !== null) {
+            } elseif ($action) {
+                if ($action_value) {
                     $url .= '/action/' . $action . '/' . $action_value;
                 } else {
                     $url .= '/action/' . $action;