diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-01-16 09:02:22 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-01-16 09:02:22 +0100 |
commit | d924ebebf752bd694dc171c1ea259c9b77dcb405 (patch) | |
tree | 4e15d947f0e1f7f071fa0153d2732e14fa6505f6 /program/lib/Roundcube/html.php | |
parent | 1fd6c43e192f3e67547dd7d12be69a1e98aa06fd (diff) |
Fix compatibility with PHP 5.2 in html.php file (#1489514)
Diffstat (limited to 'program/lib/Roundcube/html.php')
-rw-r--r-- | program/lib/Roundcube/html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php index 587b030ce..33517fbcd 100644 --- a/program/lib/Roundcube/html.php +++ b/program/lib/Roundcube/html.php @@ -880,7 +880,7 @@ class html_table extends html private function _row_tagname() { static $row_tagnames = array('table' => 'tr', 'ul' => 'li', '*' => 'div'); - return $row_tagnames[$this->tagname] ?: $row_tagnames['*']; + return $row_tagnames[$this->tagname] ? $row_tagnames[$this->tagname] : $row_tagnames['*']; } /** @@ -889,7 +889,7 @@ class html_table extends html private function _col_tagname() { static $col_tagnames = array('table' => 'td', '*' => 'span'); - return $col_tagnames[$this->tagname] ?: $col_tagnames['*']; + return $col_tagnames[$this->tagname] ? $col_tagnames[$this->tagname] : $col_tagnames['*']; } } |