fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [17473] more on phpsysinfo


From: sigurdne
Subject: [Fmsystem-commits] [17473] more on phpsysinfo
Date: Tue, 26 Dec 2017 08:33:21 -0500 (EST)

Revision: 17473
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17473
Author:   sigurdne
Date:     2017-12-26 08:33:21 -0500 (Tue, 26 Dec 2017)
Log Message:
-----------
more on phpsysinfo

Modified Paths:
--------------
    trunk/phpsysinfo/plugins/mdstatus/class.mdstatus.inc.php

Added Paths:
-----------
    trunk/phpsysinfo/templates/base/config.tpl

Modified: trunk/phpsysinfo/plugins/mdstatus/class.mdstatus.inc.php
===================================================================
--- trunk/phpsysinfo/plugins/mdstatus/class.mdstatus.inc.php    2017-12-26 
13:13:38 UTC (rev 17472)
+++ trunk/phpsysinfo/plugins/mdstatus/class.mdstatus.inc.php    2017-12-26 
13:33:21 UTC (rev 17473)
@@ -244,9 +244,12 @@
             }
         }
         $sup = $this->xml->addChild("Supported_Types");
-        foreach ($this->_result['supported_types'] as $type) {
-            $typ = $sup->addChild("Type");
-            $typ->addAttribute("Name", $type);
+        if(isset($this->_result['supported_types']) && 
is_array($this->_result['supported_types']))
+        {
+                   foreach ($this->_result['supported_types'] as $type) {
+                       $typ = $sup->addChild("Type");
+                       $typ->addAttribute("Name", $type);
+                   }
         }
         if (isset($this->_result['devices'])) foreach 
($this->_result['devices'] as $key=>$device) {
             if (!in_array($key, $hideRaids, true)) {

Added: trunk/phpsysinfo/templates/base/config.tpl
===================================================================
--- trunk/phpsysinfo/templates/base/config.tpl                          (rev 0)
+++ trunk/phpsysinfo/templates/base/config.tpl  2017-12-26 13:33:21 UTC (rev 
17473)
@@ -0,0 +1,6 @@
+<!-- BEGIN header -->
+<!-- END header -->
+<!-- BEGIN body -->
+<!-- END body -->
+<!-- BEGIN footer -->
+<!-- END footer -->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]