projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds verification for 'Prénom' and 'Nom patronymique' so that they remain close enoug...
[platal.git]
/
include
/
vcard.inc.php
diff --git
a/include/vcard.inc.php
b/include/vcard.inc.php
index
844d45f
..
a755fcd
100644
(file)
--- a/
include/vcard.inc.php
+++ b/
include/vcard.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-163,7
+163,7
@@
class VCard extends PlVCard
$res = XDB::query(
"SELECT attach, attachmime
FROM photo AS p
$res = XDB::query(
"SELECT attach, attachmime
FROM photo AS p
- WHERE
u.user_
id = {?}", $login->id());
+ WHERE
p.u
id = {?}", $login->id());
if ($res->numRows()) {
list($data, $type) = $res->fetchOneRow();
$entry->setPhoto($data, strtoupper($type));
if ($res->numRows()) {
list($data, $type) = $res->fetchOneRow();
$entry->setPhoto($data, strtoupper($type));