From fa571801fa2ed47cbbd9deb4b8a328d29eb0eeb1 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 15 Jan 2010 22:36:03 -0500 Subject: [PATCH] Fixing api_get_setting variable --- main/inc/ajax/message.ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/inc/ajax/message.ajax.php b/main/inc/ajax/message.ajax.php index d1ad562957..5031691bc7 100644 --- a/main/inc/ajax/message.ajax.php +++ b/main/inc/ajax/message.ajax.php @@ -24,9 +24,9 @@ switch ($action) { $is_western_name_order = api_is_western_name_order(); if (api_get_setting('allow_social_tool')=='true' && api_get_setting('allow_message_tool')=='true') { - - //all users - if (api_get_setting('display_all_platform_users_in_message_tool') == 'true') { + + //all users + if (api_get_setting('allow_send_message_to_all_platform_users') == 'true') { $sql = 'SELECT DISTINCT u.user_id as id, '.($is_western_name_order ? 'concat(u.firstname," ",u.lastname," ","( ",u.email," )")' : 'concat(u.lastname," ",u.firstname," ","( ",u.email," )")').' as name FROM '.$tbl_user.' u WHERE u.user_id <>'.(int)$user_id.' AND '.($is_western_name_order ? 'concat(u.firstname, " ", u.lastname)' : 'concat(u.lastname, " ", u.firstname)').' like CONCAT("%","'.$search.'","%") LIMIT 15';