X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvcard.inc.php;h=20aa9ceb5d01abbc0ebaf7b6c1be6830b6db4934;hb=1c82f959c6e69a5a979e46e530872685106f9103;hp=ebda6af26110e1acb3019887a62c23cbaa4a61df;hpb=08fa70684fd1332178cddb6b318151335fb4506c;p=platal.git diff --git a/include/vcard.inc.php b/include/vcard.inc.php index ebda6af..20aa9ce 100644 --- a/include/vcard.inc.php +++ b/include/vcard.inc.php @@ -19,7 +19,6 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -require_once('xorg.misc.inc.php'); require_once('user.func.inc.php'); class VCardIterator implements PlIterator @@ -37,8 +36,11 @@ class VCardIterator implements PlIterator public function add_user($user) { - $this->user_list[] = get_user_forlife($user); - $this->count++; + $forlife = get_user_forlife($user, '_silent_user_callback'); + if ($forlife) { + $this->user_list[] = get_user_forlife($user); + $this->count++; + } } public function first() @@ -84,7 +86,7 @@ class VCardIterator implements PlIterator INNER JOIN auth_user_quick ON ( user_id = {?} AND emails_alias_pub = 'public' ) WHERE ( redirect={?} OR redirect={?} ) AND alias LIKE '%@{$globals->mail->alias_dom}'", - S::v('uid'), + $user['user_id'], $user['forlife'].'@'.$globals->mail->domain, $user['forlife'].'@'.$globals->mail->domain2); @@ -172,7 +174,6 @@ class VCard header("Pragma: "); header("Cache-Control: "); header("Content-type: text/x-vcard; charset=UTF-8"); - header("Content-Transfer-Encoding: 8bit"); } }