@@ -85,8 +85,7 @@ |
||
| 85 | 85 | // Create the underlying PDO object |
| 86 | 86 | self::$pdo = new PDO( |
| 87 | 87 | (substr($DBHOST, 0, 1) === '/' ? |
| 88 | - "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : |
|
| 89 | - "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
| 88 | + "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
| 90 | 89 | ), |
| 91 | 90 | $DBUSER, $DBPASS, |
| 92 | 91 | array( |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | while (list(, $next) = each($queue)) { |
| 64 | 64 | // For each family on the path |
| 65 | 65 | for ($n = count($next['path']) - 2; $n >= 1; $n -= 2) { |
| 66 | - $exclude = $next['exclude']; |
|
| 66 | + $exclude = $next['exclude']; |
|
| 67 | 67 | if (count($exclude) >= $recursion) { |
| 68 | 68 | continue; |
| 69 | 69 | } |
@@ -2035,18 +2035,18 @@ |
||
| 2035 | 2035 | 'tooltip' => $birth->getPlace()->getGedcomName(), |
| 2036 | 2036 | ); |
| 2037 | 2037 | \ switch ($child->getSex()) { |
| 2038 | - case'F': |
|
| 2039 | - $gmark['fact_label'] = I18N::translate('daughter'); |
|
| 2040 | - $gmark['class'] = 'person_boxF'; |
|
| 2041 | - break; |
|
| 2042 | - case 'M': |
|
| 2043 | - $gmark['fact_label'] = I18N::translate('son'); |
|
| 2044 | - $gmark['class'] = 'person_box'; |
|
| 2045 | - break; |
|
| 2046 | - default: |
|
| 2047 | - $gmark['fact_label'] = I18N::translate('child'); |
|
| 2048 | - $gmark['class'] = 'person_boxNN'; |
|
| 2049 | - break; |
|
| 2038 | +case'F': |
|
| 2039 | + $gmark['fact_label'] = I18N::translate('daughter'); |
|
| 2040 | + $gmark['class'] = 'person_boxF'; |
|
| 2041 | + break; |
|
| 2042 | +case 'M': |
|
| 2043 | + $gmark['fact_label'] = I18N::translate('son'); |
|
| 2044 | + $gmark['class'] = 'person_box'; |
|
| 2045 | + break; |
|
| 2046 | +default: |
|
| 2047 | + $gmark['fact_label'] = I18N::translate('child'); |
|
| 2048 | + $gmark['class'] = 'person_boxNN'; |
|
| 2049 | + break; |
|
| 2050 | 2050 | } |
| 2051 | 2051 | $gmarks[] = $gmark; |
| 2052 | 2052 | } else { |