Skip to content

Commit

Permalink
Remove access of undefined variable $f_file_id
Browse files Browse the repository at this point in the history
  • Loading branch information
atrol committed Sep 3, 2014
1 parent eb1416f commit 46f02cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proj_doc_edit_page.php
Expand Up @@ -58,7 +58,7 @@

$t_file_id = gpc_get_int( 'file_id' );

$t_project_id = file_get_field( $f_file_id, 'project_id', 'project' );
$t_project_id = file_get_field( $t_file_id, 'project_id', 'project' );

access_ensure_project_level( config_get( 'upload_project_file_threshold' ), $t_project_id );

Expand All @@ -82,7 +82,7 @@
<table class="width75" cellspacing="1">
<tr>
<td class="form-title">
<input type="hidden" name="file_id" value="<?php echo $f_file_id ?>" />
<input type="hidden" name="file_id" value="<?php echo $t_file_id ?>" />
<?php echo lang_get( 'upload_file_title' ) ?>
</td>
<td class="right">
Expand Down Expand Up @@ -143,7 +143,7 @@
<br />
<form method="post" action="proj_doc_delete.php">
<?php echo form_security_field( 'proj_doc_delete' ) ?>
<input type="hidden" name="file_id" value="<?php echo $f_file_id ?>" />
<input type="hidden" name="file_id" value="<?php echo $t_file_id ?>" />
<input type="hidden" name="title" value="<?php echo $v_title ?>" />
<input type="submit" class="button" value="<?php echo lang_get( 'file_delete_button' ) ?>" />
</form>
Expand Down

0 comments on commit 46f02cc

Please sign in to comment.