Advertisement
Guest User

vbulletin

a guest
Jul 21st, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. if ($registry->GPC_exists['messagegroupid'] AND count($registry->GPC['messagegroupid']) > 0)
  2.  
  3. {
  4.  
  5. $value = $registry->GPC['messagegroupid'];
  6.  
  7. if (!is_array($value))
  8.  
  9. {
  10.  
  11. $value = array($value);
  12.  
  13. }
  14.  
  15.  
  16.  
  17. if (!(in_array(' ',$value) OR in_array('',$value)))
  18.  
  19. {
  20.  
  21. if ($rst = $vbulletin->db->query_read("
  22.  
  23. SELECT socialgroup.name
  24.  
  25. FROM " . TABLE_PREFIX."socialgroup AS socialgroup
  26.  
  27. ---> WHERE socialgroup.groupid IN (" . implode(', ', $value) .")")
  28.  
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement