Skip to content

Commit

Permalink
fix(form): unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 30, 2020
1 parent d85ba01 commit 1e8f417
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1048,10 +1048,11 @@ protected function showSearchBar() {
}

protected function showMyLastForms() {
$limit = 5;
$userId = Session::getLoginUserID();
echo '<div class="plugin_formcreator_card">';
echo '<div class="plugin_formcreator_heading">'.__('My last forms (requester)', 'formcreator').'</div>';
$result = PluginFormcreatorFormAnswer::getMyLastAnswersAsRequester();
echo '<div class="plugin_formcreator_heading">'.sprintf(__('My %1$d last forms (requester)', 'formcreator'), $limit).'</div>';
$result = PluginFormcreatorFormAnswer::getMyLastAnswersAsRequester($limit);
if ($result->count() == 0) {
echo '<div class="line1" align="center">'.__('No form posted yet', 'formcreator').'</div>';
echo "<ul>";
Expand Down Expand Up @@ -1092,7 +1093,7 @@ protected function showMyLastForms() {
foreach ($groupList as $group) {
$groupIdList[] = $group['id'];
}
$result = PluginFormcreatorFormAnswer::getMyLastAnswersAsValidator();
$result = PluginFormcreatorFormAnswer::getMyLastAnswersAsValidator($limit);
if ($result->count() == 0) {
echo '<div class="line1" align="center">'.__('No form waiting for validation', 'formcreator').'</div>';
} else {
Expand Down

0 comments on commit 1e8f417

Please sign in to comment.