Code

Mixed up stderr and strout
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 13:32:06 +0000 (13:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 13:32:06 +0000 (13:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18372 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/configViewer/class_commandVerifier.inc

index c93fa33681650f938abdc0840d58cba56e91c446..be20102532d8fa780c7a1871b5a893f0022cfa4d 100644 (file)
@@ -51,11 +51,11 @@ class commandVerifier
             $code = proc_close($process);
 
             if(!empty($stdout)) $stdout = "<pre>{$stdout}</pre>";
-            if(!empty($stdout)) $stdout = "<pre>{$stdout}</pre>";
+            if(!empty($stderr)) $stderr = "<pre>{$stderr}</pre>";
             $output = "
                 <table summary='"._("Results")."'>
                 <tr><td><b>Result:</b></td><td>$stdout</td></tr>
-                <tr><td><b>Error:</b></td><td>$stdout</td></tr>
+                <tr><td><b>Error:</b></td><td>$stderr</td></tr>
                 <tr><td><b>Return code:</b></td><td>$code</td></tr>
                 </table>";
         }