Ad Widget

Collapse

Zabbix 1.5 - Undefined offset - profiles.inc.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #16
    It doesn't, it's hard coded that offset 0 is Title and 1 is url.
    It's just how arrays are saved in profile.
    Zabbix | ex GUI developer

    Comment

    • Palmertree
      Senior Member
      • Sep 2005
      • 746

      #17
      I have extra indexes on my profile table and I think that is causing rows to be returned in a different order unless ORDER ASC is used on the profileid. I will have to check the code.

      Comment

      • Aly
        ZABBIX developer
        • May 2007
        • 1126

        #18
        Easily.. but i guess I need to add ordering anyway.

        profiles.inc.php line ~31
        Code:
        DBselect('SELECT * FROM profiles WHERE userid='.$USER_DETAILS["userid"].' AND idx='.zbx_dbstr($idx).' ORDER BY profileid ASC');
        Last edited by Aly; 20-03-2008, 17:53.
        Zabbix | ex GUI developer

        Comment

        Working...