]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix returning one line output from bconsole
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 23 Apr 2019 04:12:20 +0000 (06:12 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 23 Apr 2019 04:12:20 +0000 (06:12 +0200)
gui/baculum/protected/API/Class/Bconsole.php

index b2aef0c5b29009d16cebf732ae63bfee13a3f9f2..f1c801384abe4e85033225e68673fdc44c63e057 100644 (file)
@@ -145,7 +145,7 @@ class Bconsole extends APIModule {
                                break;
                        }
                }
-               $output = count($output) > 1 ? array_values($output) : array_shift($output);
+               $output = array_values($output);
                return (object)array('output' => $output, 'exitcode' => (integer)$exitcode);
        }