getUrlSondage: Cannot define links for EDIT and ACTION at the same time

This commit is contained in:
Olivier PEREZ 2015-10-05 23:50:51 +02:00
parent b61f60155e
commit 4b6f7b685e

View File

@ -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;
}
}