2
That place has following code:
$query = folder_query($active_folder,$dms_var_cache['doc_alpha_sort']);
$result = $dmsdb->query($query);
$sifted_results = results_sifter($result);
page_navigation($sifted_results,$disp_start);
display_table_header();
list_folders($active_folder);
list_documents($active_folder);
$disp_start = $dms_var_cache['doc_display_start'];
if($dms_var_cache['doc_display_start'] > $sifted_results['num_docs'])
{
$disp_start = 0;
$dms_var_cache['doc_display_start'] = 0;
}
The error is at the page_navigation function call. It uses $disp_start, which is defined a few lines later.
Weird! It is maybe a bug. I should expect (and you may try):
$query = folder_query($active_folder,$dms_var_cache['doc_alpha_sort']);
$result = $dmsdb->query($query);
$sifted_results = results_sifter($result);
$disp_start = $dms_var_cache['doc_display_start'];
if($dms_var_cache['doc_display_start'] > $sifted_results['num_docs'])
{
$disp_start = 0;
$dms_var_cache['doc_display_start'] = 0;
}
page_navigation($sifted_results,$disp_start);
display_table_header();
list_folders($active_folder);
list_documents($active_folder);