summaryrefslogtreecommitdiff
path: root/includes/controllers
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-09-19 14:14:36 +0000
committerfisharebest <fisharebest@gmail.com>2010-09-19 14:14:36 +0000
commit6cb7c32ca2e2925421cd0b548592098b75791d46 (patch)
tree87a7ae4c01dda00a12c38ade82d36e837295ff01 /includes/controllers
parentf716812badf2c91b09fd6d6a3d5c3307223b44f8 (diff)
downloadwebtrees-6cb7c32ca2e2925421cd0b548592098b75791d46.tar.gz
webtrees-6cb7c32ca2e2925421cd0b548592098b75791d46.tar.bz2
webtrees-6cb7c32ca2e2925421cd0b548592098b75791d46.zip
Tidy whitespace/indentation
Diffstat (limited to 'includes/controllers')
-rw-r--r--includes/controllers/advancedsearch_ctrl.php12
-rw-r--r--includes/controllers/individual_ctrl.php5
-rw-r--r--includes/controllers/search_ctrl.php6
-rw-r--r--includes/controllers/timeline_ctrl.php2
4 files changed, 12 insertions, 13 deletions
diff --git a/includes/controllers/advancedsearch_ctrl.php b/includes/controllers/advancedsearch_ctrl.php
index 771c14148e..c877ebb999 100644
--- a/includes/controllers/advancedsearch_ctrl.php
+++ b/includes/controllers/advancedsearch_ctrl.php
@@ -404,12 +404,12 @@ class AdvancedSearchController extends SearchController {
$ct = count($parts);
$liketmp='';
for($j=0; $j<$ct; $j++) {
- $liketmp.= "%".($j+1)." ".$parts[$j]." %";
-// if ($j<$ct-1) {
-// $sqlwhere .= "%";
-// } else {
- $liketmp .= "%{$value}%";
-// }
+ $liketmp.= "%".($j+1)." ".$parts[$j]." %";
+// if ($j<$ct-1) {
+// $sqlwhere .= "%";
+// } else {
+ $liketmp .= "%{$value}%";
+// }
}
$sqlwhere .= WT_DB::quote($liketmp);
}
diff --git a/includes/controllers/individual_ctrl.php b/includes/controllers/individual_ctrl.php
index ea3e64a84d..2cc6192080 100644
--- a/includes/controllers/individual_ctrl.php
+++ b/includes/controllers/individual_ctrl.php
@@ -207,10 +207,10 @@ class IndividualController extends BaseController {
}
if (!isset($_SESSION['WT_pin']) && $DEFAULT_PIN_STATE)
- $_SESSION['WT_pin'] = true;
+ $_SESSION['WT_pin'] = true;
if (!isset($_SESSION['WT_sb_closed']) && $DEFAULT_SB_CLOSED_STATE)
- $_SESSION['WT_sb_closed'] = true;
+ $_SESSION['WT_sb_closed'] = true;
//-- handle ajax calls
if ($this->action=="ajax") {
@@ -922,4 +922,3 @@ class IndividualController extends BaseController {
// -----------------------------------------------------------------------------
}
-
diff --git a/includes/controllers/search_ctrl.php b/includes/controllers/search_ctrl.php
index 8a2fcaef37..18deead47d 100644
--- a/includes/controllers/search_ctrl.php
+++ b/includes/controllers/search_ctrl.php
@@ -307,8 +307,8 @@ class SearchController extends BaseController {
/**
* setRequestValues - Checks if the variable names ($varNames) are in
- * the $_REQUEST and if so assigns their values to
- * $this based on the variable name ($this->$varName).
+ * the $_REQUEST and if so assigns their values to
+ * $this based on the variable name ($this->$varName).
*
* @param array $varNames - Array of variable names(strings).
*/
@@ -330,7 +330,7 @@ class SearchController extends BaseController {
/**
* setRequestValues - Prints out all of the variable names and their
- * values based on the variable name ($this->$varName).
+ * values based on the variable name ($this->$varName).
*
* @param array $varNames - Array of variable names(strings).
*/
diff --git a/includes/controllers/timeline_ctrl.php b/includes/controllers/timeline_ctrl.php
index ddc7fd0435..e423115514 100644
--- a/includes/controllers/timeline_ctrl.php
+++ b/includes/controllers/timeline_ctrl.php
@@ -126,7 +126,7 @@ class TimelineController extends BaseController {
$this->topyear=max($this->topyear, date('Y'));
$event->temp = $p;
//-- do not add the same fact twice (prevents marriages from being added multiple times)
- if (!in_array($event, $this->indifacts, true)) $this->indifacts[] = $event;
+ if (!in_array($event, $this->indifacts, true)) $this->indifacts[] = $event;
}
}
}