From 069e1b45328a046d9a342089b5329ff093682047 Mon Sep 17 00:00:00 2001 From: fisharebest Date: Sat, 25 Sep 2010 16:58:10 +0000 Subject: Tidy up whitespace/indents --- includes/controllers/advancedsearch_ctrl.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/controllers/advancedsearch_ctrl.php') 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){ -- cgit v1.3