diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-06-07 13:28:12 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-06-07 13:28:12 +0400 |
commit | 1a0471d8de4e13cec8eb9ad7be680746c8731d9c (patch) | |
tree | 5c87a24fcbee16b80bbe2e0a9f726aadd19d5f88 /libraries | |
parent | 13dba2901955785165933459e55e031a0cd2b37b (diff) |
More readable code
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/schema/Pdf_Relation_Schema.class.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index 72c6394586..c6948279ee 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -469,7 +469,11 @@ class Table_Stats */ private function _getTitle() { - return ($this->_showInfo ? sprintf('%.0f', $this->width) . 'x' . sprintf('%.0f', $this->height) : '') . ' ' . $this->_tableName; + $ret = ''; + if ($this->_showInfo) { + $ret = sprintf('%.0fx%0.f', $this->width, $this->height); + } + return $ret . ' ' . $this->_tableName; } /** |