Skip to content
Snippets Groups Projects
  1. Jan 27, 2020
  2. Jan 03, 2020
  3. Dec 19, 2019
  4. Dec 18, 2019
    • JediKev's avatar
      session: Destroy Warning · 8c698910
      JediKev authored
      This addresses the `session_destroy()` warning many people are receiving
      with PHP 7+. The warning states `PHP Warning:  session_destroy(): Session
      callback expects true/false return value`. This is because our session
      destroy method does not always return true/false, sometimes it returns
      `int(1)`. This adds a check to see if the session was not deleted
      successfully, if not it returns false, otherwise it returns true. This will
      ensure `session_destroy()` always receives a true/false return value.
      8c698910
    • aydreeihn's avatar
      Issue: DB Error #1064 Queue Counts · f26ce604
      aydreeihn authored
      This commit fixes an error where queue counts cannot be returned if the config saved for a queue is invalid. We try to build a query that does a count based on the criteria saved in the config, so when we try to build the query for an incorrectly saved config, the query we try to write looks something like this:
      
      COUNT(DISTINCT CASE WHEN  THEN A1.`ticket_id` END) AS `q15`
      
      Rather than trying to do a count for these, we should just skip over them so that no error is thrown since there is no way we would be able to count it anyway.
      
      It is also possible for there to be more than 1 criteria defined, and if one of them is wrong, the same error will be thrown. We can check to see if there are multiple criteria, and if one is empty, we can skip that count as well.
      f26ce604
  5. Nov 25, 2019
  6. Nov 21, 2019
  7. Nov 19, 2019
  8. Nov 18, 2019
  9. Nov 14, 2019
  10. Nov 13, 2019
  11. Nov 12, 2019
Loading