Fix check extension for businessfields

This commit is contained in:
Romain Neutron
2012-03-27 15:09:53 +02:00
parent e5ffd6fa57
commit 87ad76fc02
2 changed files with 10 additions and 7 deletions

View File

@@ -190,6 +190,8 @@ class module_console_checkExtension extends Command
, $usr_id
, FALSE
, PHRASEA_MULTIDOC_DOCONLY
, ''
, array()
);

View File

@@ -211,7 +211,8 @@ class searchEngine_adapter_phrasea_engine extends searchEngine_adapter_abstract
{
$proposals = self::proposalsToHTML($this->qp['main']->proposals);
if (trim($proposals) !== '')
{ return "<div style='height:0px; overflow:hidden'>" . $this->qp['main']->proposals["QRY"]
{
return "<div style='height:0px; overflow:hidden'>" . $this->qp['main']->proposals["QRY"]
. "</div><div class='proposals'>" . $proposals . "</div>";
}
}
@@ -358,13 +359,13 @@ class searchEngine_adapter_phrasea_engine extends searchEngine_adapter_abstract
public function get_suggestions(Session_Handler $session)
{
$props = array();
foreach($this->qp['main']->proposals['QUERIES'] as $prop)
foreach ($this->qp['main']->proposals['QUERIES'] as $prop)
{
$props[] = array(
'value' => $prop
, 'current' => false
, 'hits' => null
);
'value' => $prop
, 'current' => false
, 'hits' => null
);
}
return $props;
@@ -442,7 +443,7 @@ class searchEngine_adapter_phrasea_engine extends searchEngine_adapter_abstract
, false
, $this->opt_search_type == 1 ? PHRASEA_MULTIDOC_REGONLY : PHRASEA_MULTIDOC_DOCONLY
, $sort
, $BF
, $BF
);
$total_time += $this->results[$sbas_id]['time_all'];