Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
library
uw_lib_refshelf
Commits
a6ffdaec
Commit
a6ffdaec
authored
Dec 19, 2017
by
Ganesharatnam
Browse files
Fix for record counts
parent
a566f8c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
uw_lib_refshelf.module
uw_lib_refshelf.module
+2
-2
No files found.
uw_lib_refshelf.module
View file @
a6ffdaec
...
...
@@ -253,9 +253,9 @@ function uw_lib_refshelf_search($word) {
$no_duplicates
=
array_unique
(
$all
);
//$no_duplicates = uw_lib_refshelf_highlight_words($word, $no_duplicates);
$records_cnt
=
count
(
$no_duplicates
);
$actual_records
=
$records_cnt
-
1
;
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
))
{
foreach
(
$no_duplicates
as
$result
)
{
$page
.
=
$result
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment