mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Send to a selected userclass with 1 member correcly
This commit is contained in:
parent
d2eacd894e
commit
3d3995a010
10
contact.php
10
contact.php
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/contact.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-03-26 06:34:56 $
|
||||
| $Author: e107coders $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-04-15 14:37:17 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("class2.php");
|
||||
@ -102,12 +102,12 @@ if(isset($_POST['send-contactus'])){
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = $pref['sitecontacts'] . " IN (user_class) ";
|
||||
$query = "FIND_IN_SET(".$pref['sitecontacts'].",user_class) ";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$query = "user_id = ".$_POST['contact_person'];
|
||||
$query = "user_id = ".intval($_POST['contact_person']);
|
||||
}
|
||||
|
||||
if($sql -> db_Select("user", "user_name,user_email",$query." LIMIT 1"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user