summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/PEAR/Frontend/CLI.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php
index a5e05bfc54..f8e928a463 100644
--- a/pear/PEAR/Frontend/CLI.php
+++ b/pear/PEAR/Frontend/CLI.php
@@ -223,6 +223,9 @@ class PEAR_Frontend_CLI extends PEAR
if (!empty($caption)) {
$this->displayHeading($caption);
}
+ if (count($table_data) == 0) {
+ return;
+ }
if (!isset($width)) {
$width = $widest;
} else {
@@ -316,4 +319,4 @@ class PEAR_Frontend_CLI extends PEAR
// }}}
}
-?> \ No newline at end of file
+?>