Commit 33660132 by pupi1985

Minor IF statements corrections.

parent 26711eeb
...@@ -260,10 +260,8 @@ ...@@ -260,10 +260,8 @@
if (isset($this->content['page_links']['items'])) // convert page links to rel=prev and rel=next tags if (isset($this->content['page_links']['items'])) // convert page links to rel=prev and rel=next tags
foreach ($this->content['page_links']['items'] as $page_link) foreach ($this->content['page_links']['items'] as $page_link)
if ($page_link['type']=='prev') if (in_array($page_link['type'], array('prev', 'next')))
$this->output('<link rel="prev" href="'.$page_link['url'].'"/>'); $this->output('<link rel="' . $page_link['type'] . '" href="' . $page_link['url'] . '" />');
elseif ($page_link['type']=='next')
$this->output('<link rel="next" href="'.$page_link['url'].'"/>');
} }
function head_script() function head_script()
...@@ -934,10 +932,11 @@ ...@@ -934,10 +932,11 @@
$tworows=($columns==1) && (!empty($field['label'])) && (!$skipdata) && $tworows=($columns==1) && (!empty($field['label'])) && (!$skipdata) &&
( (!($prefixed||$suffixed)) || (!empty($field['error'])) || (!empty($field['note'])) ); ( (!($prefixed||$suffixed)) || (!empty($field['error'])) || (!empty($field['note'])) );
if (($columns==1) && isset($field['id'])) if (isset($field['id']))
$this->output('<tbody id="'.$field['id'].'">', '<tr>'); if ($columns == 1)
elseif (isset($field['id'])) $this->output('<tbody id="'.$field['id'].'">', '<tr>');
$this->output('<tr id="'.$field['id'].'">'); else
$this->output('<tr id="'.$field['id'].'">');
else else
$this->output('<tr>'); $this->output('<tr>');
...@@ -2211,4 +2210,4 @@ ...@@ -2211,4 +2210,4 @@
/* /*
Omit PHP closing tag to help avoid accidental output Omit PHP closing tag to help avoid accidental output
*/ */
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment