News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Logic Error in GenericList.template.php

Started by pcfreak30, January 20, 2012, 10:23:07 PM

Previous topic - Next topic

pcfreak30

    Version(s) of SMF

  • 2.1 and maybe lower
    Your Setup:

  • I have a few mods installed but this is a core template bug and I know for a fact that no mods have altered this template.
        List any Modifications you have installed
        List any Themes you have installed

  • I have "TotalBlue" installed.
        Are you using UTF-8? Yes
    Server Software:

  • PHP Version 5.3.9
  • Nginx Version 1.0.11
  • MySQL Version 5.5.19
    Where the Error Occurred
       

  • File: Themes/default/GenericList.template.php
  • Line: 54
    How to Reproduce this Error?: Simply try to use an extra table row via php array without having a multi-page list. It will not show.

To fix replace
if (!empty($cur_list['items_per_page']) || isset($cur_list['additional_rows']['bottom_of_list']))

with

if (!empty($cur_list['items_per_page']) || isset($cur_list['additional_rows']['above_column_headers']))

I was working on creating something for my board and spent almost 30 min trying to figure why it wasn't showing and kept fiddling with the arrays. Hope this saves someone else some time.

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: