Changeset 15 for trunk/inc/search.inc.php
- Timestamp:
- 08/09/05 22:30:14 (7 years ago)
- Files:
-
- 1 modified
-
trunk/inc/search.inc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/search.inc.php
r1 r15 25 25 include(INCLUDESPATH.'/countries_list.inc.php'); 26 26 $labels['profile']['country'] = $db->getAssoc('SELECT DISTINCT country, country FROM user_contact'); 27 $ smarty->assign('Title', 'Find your soul mate');27 $_SMARTY['Title'] = 'Find your soul mate'; 28 28 29 29 $pagination['elmt_by_page'] = 20; … … 95 95 $idx++; 96 96 } 97 $where[] = $field.' IN ('.implode(',', array_fill(0,count($_GET['search'][$field]), '?')).')';97 $where[] = $field.' IN ('.implode(',', @array_fill(0,count($_GET['search'][$field]), '?')).')'; 98 98 unset($temp); 99 99 } … … 137 137 $pagination['nb_pages'] = 1; 138 138 139 $pagination['pages'] = array_fill(1,$pagination['nb_pages'], NULL);139 $pagination['pages'] = @array_fill(1,$pagination['nb_pages'], NULL); 140 140 141 $ smarty->assign('pagination', $pagination);142 $ smarty->assign('search', $search);143 $ smarty->assign('result', $result);141 $_SMARTY['pagination'] = $pagination; 142 $_SMARTY['search'] = $search; 143 $_SMARTY['result'] = $result; 144 144 145 145 if(!$_GET['do'])
