Error in class User method get

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Minor
    • 1.8, 1.9.0 (alpha)
    • Affects Version/s: 1.9.0 (alpha)
    • Component/s: 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']; }

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

              Created:
              Updated:
              Resolved: