forked from Public/pics
Use triple-equals in a few more places
This commit is contained in:
@@ -81,7 +81,7 @@ class FormView extends SubTemplate
|
||||
if ($field['type'] != 'checkbox' && isset($field['label']))
|
||||
echo '
|
||||
<dt class="cont_', $field_id, isset($field['tab_class']) ? ' target target-' . $field['tab_class'] : '', '"', in_array($field_id, $this->missing) ? ' style="color: red"' : '', '>', $field['label'], '</dt>';
|
||||
elseif ($field['type'] == 'checkbox' && isset($field['header']))
|
||||
elseif ($field['type'] === 'checkbox' && isset($field['header']))
|
||||
echo '
|
||||
<dt class="cont_', $field_id, isset($field['tab_class']) ? ' target target-' . $field['tab_class'] : '', '"', in_array($field_id, $this->missing) ? ' style="color: red"' : '', '>', $field['header'], '</dt>';
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class TabularData extends SubTemplate
|
||||
$th['href'] ? '<a href="' . $th['href'] . '">' . $th['label'] . '</a>' : $th['label'];
|
||||
|
||||
if ($th['sort_mode'] )
|
||||
echo ' ', $th['sort_mode'] == 'up' ? '↑' : '↓';
|
||||
echo ' ', $th['sort_mode'] === 'up' ? '↑' : '↓';
|
||||
|
||||
echo '</th>';
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ abstract class Template
|
||||
public function adopt(Template $template, $position = 'end')
|
||||
{
|
||||
// By default, we append it.
|
||||
if ($position == 'end')
|
||||
if ($position === 'end')
|
||||
$this->_subtemplates[] = $template;
|
||||
// We can also add it to the beginning of the list, though.
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user