Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7042

PHP Notice: in file /includes/functions_content.php on line 825: Undefined index: KB

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.1
    • 3.0.x
    • None
    • PHP Environment:
      Database:

      It's displayed when viewing a PM with an attachment, probably it's displayed also in topics.

      Solution:
      Open includes/functions_content.php

      Find:

      		$size_lang = ($filesize >= 1048576) ? $user->lang['MB'] : ( ($filesize >= 1024) ? $user->lang['KB'] : $user->lang['BYTES'] );

      Replace with:

      		$size_lang = ($filesize >= 1048576) ? $user->lang['MiB'] : ( ($filesize >= 1024) ? $user->lang['KiB'] : $user->lang['BYTES'] );

            Acyd Burn Meik Sievertsen [X] (Inactive)
            LEW21 LEW21 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: