diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-09-25 16:58:10 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-09-25 16:58:10 +0000 |
| commit | 069e1b45328a046d9a342089b5329ff093682047 (patch) | |
| tree | f27b474d45164767cfeb4b0541370526c78c8186 /includes/controllers/advancedsearch_ctrl.php | |
| parent | 5ea701661f5800d6c097d0928c1270c898ca67b0 (diff) | |
| download | webtrees-069e1b45328a046d9a342089b5329ff093682047.tar.gz webtrees-069e1b45328a046d9a342089b5329ff093682047.tar.bz2 webtrees-069e1b45328a046d9a342089b5329ff093682047.zip | |
Tidy up whitespace/indents
Diffstat (limited to 'includes/controllers/advancedsearch_ctrl.php')
| -rw-r--r-- | includes/controllers/advancedsearch_ctrl.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/controllers/advancedsearch_ctrl.php b/includes/controllers/advancedsearch_ctrl.php index c877ebb999..3c84a11bc1 100644 --- a/includes/controllers/advancedsearch_ctrl.php +++ b/includes/controllers/advancedsearch_ctrl.php @@ -5,7 +5,7 @@ // Copyright (C) 2010 webtrees development team. // // Derived from PhpGedView -// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. +// Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -405,17 +405,17 @@ class AdvancedSearchController extends SearchController { $liketmp=''; for($j=0; $j<$ct; $j++) { $liketmp.= "%".($j+1)." ".$parts[$j]." %"; -// if ($j<$ct-1) { -// $sqlwhere .= "%"; -// } else { + //if ($j<$ct-1) { + //$sqlwhere .= "%"; + //} else { $liketmp .= "%{$value}%"; -// } + //} } $sqlwhere .= WT_DB::quote($liketmp); } } $sql = $sqlfields.$sqltables.$sqlwhere; -// print $sql; + //print $sql; if ($justSql) return $sql; $rows=WT_DB::prepare($sql)->fetchAll(PDO::FETCH_ASSOC); foreach ($rows as $row){ |
