Commit a6ffdaec authored by Ganesharatnam's avatar Ganesharatnam
Browse files

Fix for record counts

parent a566f8c3
...@@ -253,9 +253,9 @@ function uw_lib_refshelf_search($word) { ...@@ -253,9 +253,9 @@ function uw_lib_refshelf_search($word) {
$no_duplicates = array_unique($all); $no_duplicates = array_unique($all);
//$no_duplicates = uw_lib_refshelf_highlight_words($word, $no_duplicates); //$no_duplicates = uw_lib_refshelf_highlight_words($word, $no_duplicates);
$records_cnt = count($no_duplicates); $records_cnt = count($no_duplicates);
$actual_records = $records_cnt -1 ;
if ($records_cnt < 25) { if ($records_cnt < 25) {
$msg = "<br /><br /><div><h3>The follwing " . $records_cnt . " results found for the key word <b>" . $word . "</b></h3></div><br />"; $msg = "<br /><br /><div><h3>The follwing " . $actual_records . " results found for the key word <b>" . $word . "</b></h3></div><br />";
if (!empty($no_duplicates)) { if (!empty($no_duplicates)) {
foreach ($no_duplicates as $result) { foreach ($no_duplicates as $result) {
$page .= $result; $page .= $result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment