Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-1431

Error in class User method get

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8, 1.9.0 (alpha)
    • 1.9.0 (alpha)
    • API (A)
    • None

      Class: user
      Method: get

      line 144:
      // type
      if(!is_null($options['status']))

      { $sql_parts['where'][] = 'g.users_status='.$options['status']; }

      change to:
      // type
      if(!is_null($options['status'])){ $sql_parts['where'][] = 'u.type='.$options['type']; }



      I'm not sure if this is correct ?
      line: 148
      // status
      if(!is_null($options['status'])){ $sql_parts['where'][] = 'g.users_status='.$options['status']; }

      Souldn't be:
      // status
      if(!is_null($options['status']))

      { $sql_parts['where'][] = 'u.status='.$options['status']; }

            Unassigned Unassigned
            yaap yaap
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: