Fix incorrect stristr() parameter order
[squirrelmail.git] / plugins / bug_report / system_specs.php
index 37957880c1992770fece872d647f548de3a95d0e..ee46dc23b05ca4379e33bf371d9f2c2c8976dc3f 100644 (file)
@@ -141,7 +141,13 @@ function get_system_specs() {
         $body.= '  Capabilities: ';
         if ($imap_capabilities = sqimap_capability($imap_stream)) {
             foreach ($imap_capabilities as $capability => $value) {
-                $body.= $capability . (is_bool($value) ? ' ' : "=$value ");
+               if (is_array($value)) {
+                       foreach($value as $val) {
+                               $body .= $capability . "=$val ";
+                       }
+               } else {
+                       $body.= $capability . (is_bool($value) ? ' ' : "=$value ");
+               }
             }
         }
         $body.="\n";