projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an account type for school administrative staff and for FX secretaries.
[platal.git]
/
modules
/
xnetevents.php
diff --git
a/modules/xnetevents.php
b/modules/xnetevents.php
index
9db873e
..
6e4c418
100644
(file)
--- a/
modules/xnetevents.php
+++ b/
modules/xnetevents.php
@@
-94,7
+94,6
@@
class XnetEventsModule extends PLModule
$eid, $globals->asso('id'));
// delete the requests for payments
$eid, $globals->asso('id'));
// delete the requests for payments
- require_once 'validations.inc.php';
XDB::execute("DELETE FROM requests
WHERE type = 'paiements' AND data LIKE {?}",
PayReq::same_event($eid, $globals->asso('id')));
XDB::execute("DELETE FROM requests
WHERE type = 'paiements' AND data LIKE {?}",
PayReq::same_event($eid, $globals->asso('id')));
@@
-449,7
+448,6
@@
class XnetEventsModule extends PLModule
}
// request for a new payment
if (Post::v('paiement_id') == -1 && $money_defaut >= 0) {
}
// request for a new payment
if (Post::v('paiement_id') == -1 && $money_defaut >= 0) {
- require_once 'validations.inc.php';
$p = new PayReq(S::user(),
Post::v('intitule')." - ".$globals->asso('nom'),
Post::v('site'), $money_defaut,
$p = new PayReq(S::user(),
Post::v('intitule')." - ".$globals->asso('nom'),
Post::v('site'), $money_defaut,
@@
-494,7
+492,6
@@
class XnetEventsModule extends PLModule
WHERE eid = {?}", $eid);
$evt = $res->fetchOneAssoc();
// find out if there is already a request for a payment for this event
WHERE eid = {?}", $eid);
$evt = $res->fetchOneAssoc();
// find out if there is already a request for a payment for this event
- require_once 'validations.inc.php';
$res = XDB::query("SELECT stamp
FROM requests
WHERE type = 'paiements' AND data LIKE {?}",
$res = XDB::query("SELECT stamp
FROM requests
WHERE type = 'paiements' AND data LIKE {?}",
@@
-585,7
+582,6
@@
class XnetEventsModule extends PLModule
$u = 0;
subscribe_lists_event($member->uid, $evt, -1, $paid);
} else {
$u = 0;
subscribe_lists_event($member->uid, $evt, -1, $paid);
} else {
- var_dump($u);
$u = $u['cnt'] ? $u['nb'] : null;
subscribe_lists_event($member->uid, $evt, ($u > 0 ? 1 : 0), $paid);
}
$u = $u['cnt'] ? $u['nb'] : null;
subscribe_lists_event($member->uid, $evt, ($u > 0 ? 1 : 0), $paid);
}