Subversion Repositories Applications.papyrus

Rev

Rev 2125 | Rev 2127 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2125 Rev 2126
Line 230... Line 230...
230
	if(!$q) return array();
230
	if(!$q) return array();
Line 231... Line 231...
231
 
231
 
232
	$db = mysql_connect(SPHINX_DSN, NULL, NULL, TRUE);
232
	$db = mysql_connect(SPHINX_DSN, NULL, NULL, TRUE);
Line 233... Line 233...
233
	$req = mysql_query(sprintf("SELECT group_id, main_id FROM i_projet, i_spip, i_papyrus, i_bazar, i_coste, i_nvjfl WHERE MATCH('%s') LIMIT 50", $q), $db);
233
	$req = mysql_query(sprintf("SELECT group_id, main_id FROM i_projet, i_spip, i_papyrus, i_bazar, i_coste, i_nvjfl WHERE MATCH('%s') LIMIT 50", $q), $db);
234
 
234
 
235
	$res = array('spip' => array(), 'bazar' => array(), 'projet' => array(), 'papyrus' => array(), 'coste' => array());
235
	$res = array('spip' => array(), 'bazar' => array(), 'projet' => array(), 'papyrus' => array(), 'coste' => array(), 'nvjfl' => array());
236
	$ids_par_poids = array();
236
	$ids_par_poids = array();
237
	while($rec = mysql_fetch_array($req, MYSQL_ASSOC)) {
237
	while($rec = mysql_fetch_array($req, MYSQL_ASSOC)) {
238
		$res[$rec['group_id']][$rec['id']] = $rec;
238
		$res[$rec['group_id']][$rec['id']] = $rec;