summaryrefslogtreecommitdiffstats
path: root/src/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.php')
-rw-r--r--src/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.php b/src/search.php
index bc848c1..906f09c 100644
--- a/src/search.php
+++ b/src/search.php
@@ -140,7 +140,7 @@ function combine_results($results,&$docs)
{
$key=$di["url"];
$rank=$di["rank"];
- if ($docs[$key])
+ if (isset($docs[$key]))
{
$docs[$key]["rank"]+=$rank;
}