Changeset 1575

Show
Ignore:
Timestamp:
03/31/08 07:41:31 (4 months ago)
Author:
misja
Message:

Misja Hoebe <misja@curverider.co.uk> Fixes #334, thanks Kevin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/community/lib/community_membership_check.php

    r1539 r1575  
    77 * Created on May 4, 2007 
    88 * 
    9  * @author Diego Andrés Ramírez Aragón <diego@somosmas.org> 
    10  * @copyright Corporación Somos más - 2007 
     9 * @author Diego Andrᅵs Ramᅵrez Aragᅵn <diego@somosmas.org> 
     10 * @copyright Corporaciᅵn Somos mᅵs - 2007 
    1111 */ 
    1212global $CFG; 
     
    1717 
    1818  $result= count_records_sql('SELECT COUNT(u.ident) FROM '.$CFG->prefix.'friends f 
    19                                      LEFT JOIN '.$CFG->prefix.'users u ON u.ident = f.friend 
    20                                      WHERE f.owner = ? AND f.friend = ?',array($page_owner,$community_owner) 
     19                              LEFT JOIN '.$CFG->prefix.'users u ON u.ident = f.friend 
     20                              WHERE f.owner = ? AND f.friend = ?  
     21                              AND u.user_type =?' ,array($page_owner,$community_owner,'community')  
    2122                              ); 
    2223  $run_result = $result;