Browse Source

Warning removal.

Tyler Akins 23 years ago
parent
commit
ca6637381c
2 changed files with 4 additions and 0 deletions
  1. 3 0
      functions/attachment_common.php
  2. 1 0
      src/redirect.php

+ 3 - 0
functions/attachment_common.php

@@ -10,6 +10,9 @@
     ** $Id$
     ** $Id$
     **/
     **/
 
 
+  global $attachment_common_show_images_list;
+  $attachment_common_show_images_list = array();
+
   global $FileExtensionToMimeType, $attachment_common_types;
   global $FileExtensionToMimeType, $attachment_common_types;
   $FileExtensionToMimeType = array('bmp'  => 'image/x-bitmap',
   $FileExtensionToMimeType = array('bmp'  => 'image/x-bitmap',
                                    'gif'  => 'image/gif',
                                    'gif'  => 'image/gif',

+ 1 - 0
src/redirect.php

@@ -104,6 +104,7 @@
     session_register('attachment_common_types');
     session_register('attachment_common_types');
     session_register('attachment_common_types_parsed');
     session_register('attachment_common_types_parsed');
   
   
+    $debug = false;
     if (isset($HTTP_SERVER_VARS['HTTP_ACCEPT']) &&
     if (isset($HTTP_SERVER_VARS['HTTP_ACCEPT']) &&
         !isset($attachment_common_types_parsed[$HTTP_SERVER_VARS['HTTP_ACCEPT']]))
         !isset($attachment_common_types_parsed[$HTTP_SERVER_VARS['HTTP_ACCEPT']]))
         attachment_common_parse($HTTP_SERVER_VARS['HTTP_ACCEPT'], $debug);
         attachment_common_parse($HTTP_SERVER_VARS['HTTP_ACCEPT'], $debug);