Code

Fixed some errors if mysql is not available
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Jan 2006 09:52:29 +0000 (09:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Jan 2006 09:52:29 +0000 (09:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2500 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAccount.inc
plugins/admin/systems/glpi.tpl

index 258499ff27c7d3c55650839148260a06bf4d2156..4323dfa7d439da9fadc91d88e5cc996878b6958f 100644 (file)
@@ -124,7 +124,7 @@ class glpiAccount extends plugin
         To avoid undefined indexes, if there is an error with the glpi db
      */ 
     foreach(array("SystemTypes","SystemTypeKeys","Manufacturers",
-                  "OSs","TechnicalResponsibles","InstalledDevices","Attachments",
+                  "OSs","TechnicalResponsibles","InstalledDevices","Attachments","AttachmentKeys",
                   "OSKeys","OSs","ManufacturerKeys","InstalledDeviceKeys") as $attr){
       $smarty->assign($attr,array());
       $smarty->assign($attr."ACL"," disabled ");
index c945c46f0cde1bdeaf277537295891f4ca8976bb..2a65c176352685df2f9ece6cd4de2107338bd001 100644 (file)
@@ -91,8 +91,8 @@
                                                <select name="Attachments" {$AttachmentsACL} style="height:120px;width:100%;" multiple>
                                                        {html_options values=$AttachmentKeys output=$Attachments}
                                                </select>
-                                               <input name="AddAttachment"     value="{t}Add{/t}" type="submit">       
-                                               <input name="RemoveAttachment"  value="{t}Remove{/t}" type="submit">    
+                                               <input name="AddAttachment"     value="{t}Add{/t}" type="submit" {$AttachmentsACL}>     
+                                               <input name="RemoveAttachment"  value="{t}Remove{/t}" type="submit" {$AttachmentsACL}>  
                                        </td>
                                </tr>
                        </table>