does exactly what is advertised in title.

CommentFileSizeAuthor
votingapi.patch426 bytesjulius.juurmaa

Comments

eaton’s picture

Status: Reviewed & tested by the community » Fixed

thanks for the tweak. I've altered it slightly to protect against goofy values (each $uid is run through is_numeric()), resulting in the following:

  elseif (is_array($uid)) {
    $uid_list = array();
    foreach ($uid as $discrete_uid) {
      if (is_numeric($discrete_uid)) {
        $uid_list[] => $discrete_uid;
      }
    }
    if (count($uid_list)) {
      $filter_string .= " AND v.uid IN ('" . implode("','",$uid_list) . "')";
    }
  }

I'll be committing it and marking it as 4.7 tonight.

Anonymous’s picture

Status: Fixed » Closed (fixed)