diff options
author | Guy Brand <gb@isis.u-strasbg.fr> | 2007-03-30 23:50:42 +0200 |
---|---|---|
committer | Guy Brand <gb@isis.u-strasbg.fr> | 2007-03-30 23:50:42 +0200 |
commit | 09c27a6d337ca6abdd9e4a370481620b328dadf3 (patch) | |
tree | 8ac259093bc3c291339f5b6480fc27b687e82973 | |
parent | 41dfcdfc021c9527fd0ba07ccb7ce2997348c1f0 (diff) | |
download | rpg-09c27a6d337ca6abdd9e4a370481620b328dadf3.tar.gz rpg-09c27a6d337ca6abdd9e4a370481620b328dadf3.tar.bz2 |
Fix backlinks - See FS#1040
darcs-hash:20070330215042-19e2d-3528f2412ff044eb45158f349db5bbb5e32d907b.gz
-rw-r--r-- | inc/fulltext.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index 35f789376..4049a753a 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -279,7 +279,8 @@ function ft_resultCombine($args){ } $result = array(); - foreach ($args[0] as $key1 => $value1) { + if ($array_count > 1) { + foreach ($args[0] as $key1 => $value1) { for ($i = 1; $i !== $array_count; $i++) { foreach ($args[$i] as $key2 => $value2) { if ((string) $key1 === (string) $key2) { @@ -288,6 +289,7 @@ function ft_resultCombine($args){ } } } + } } return $result; } |