<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
{
if ($this->asso_id) {
$res = XDB::query("SELECT e.eid, a.diminutif
- FROM groupex.evenements AS e
- INNER JOIN groupex.asso AS a ON (e.asso_id = a.id)
- LEFT JOIN groupex.evenements_participants AS p ON (p.eid = e.eid AND p.uid = {?})
+ FROM group_events AS e
+ INNER JOIN groups AS a ON (e.asso_id = a.id)
+ LEFT JOIN group_event_participants AS p ON (p.eid = e.eid AND p.uid = {?})
WHERE e.paiement_id = {?} AND p.uid IS NULL", S::i('uid'), $this->id);
if ($res->numRows()) {
return $res->fetchOneAssoc();