Skip to content

Commit

Permalink
Fixed a warning in the print_all_bug_page.php where f_limit_view was …
Browse files Browse the repository at this point in the history
…used

without being defined.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1155 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Jun 25, 2002
1 parent 935710c commit be03476
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions print_all_bug_page.php
Expand Up @@ -21,7 +21,6 @@
check_varset( $f_search, false );
check_varset( $f_offset, 0 );


# Load preferences
$f_show_category = $t_setting_arr[1];
$f_show_severity = $t_setting_arr[2];
Expand All @@ -44,7 +43,7 @@
$c_offset = (integer)$f_offset;
$c_user_id = (integer)$f_user_id;
$c_assign_id = (integer)$f_assign_id;
$c_limit_view = (integer)$f_limit_view;
$c_per_page = (integer)$f_per_page;
$c_show_category = addslashes($f_show_category);
$c_show_severity = addslashes($f_show_severity);
$c_show_status = addslashes($f_show_status);
Expand Down Expand Up @@ -164,9 +163,7 @@
$query = $query.', priority DESC';
}

if ( isset( $f_limit_view ) ) {
$query = $query." LIMIT $c_offset, $c_limit_view";
}
$query = $query." LIMIT $c_offset, $c_per_page";

# perform query
$result = db_query( $query );
Expand Down Expand Up @@ -256,7 +253,7 @@
</select>
</td>
<td>
<input type="text" name="f_per_page" size="3" maxlength="7" value="<?php echo $f_limit_view ?>">
<input type="text" name="f_per_page" size="3" maxlength="7" value="<?php echo $f_per_page ?>">
</td>
<td>
<input type="text" name="f_highlight_changed" size="3" maxlength="7" value="<?php echo $f_highlight_changed ?>">
Expand Down

0 comments on commit be03476

Please sign in to comment.