-if((Post::get('mentor_pays_op', '') == 'ajouter') && ($nb_mentor_pays < $max_mentor_pays)) {
- if(Post::get('mentor_pays_id', '00') != '00') {
- $id_ajoutee = Post::get('mentor_pays_id', '00');
- XDB::execute("INSERT INTO mentor_pays(uid, pid) VALUES({?}, {?})", Session::getInt('uid', -1), $id_ajoutee);
+if((Post::v('mentor_pays_op', '') == 'ajouter') && ($nb_mentor_pays < $max_mentor_pays)) {
+ if(Post::v('mentor_pays_id', '00') != '00') {
+ $id_ajoutee = Post::v('mentor_pays_id', '00');
+ XDB::execute("INSERT INTO mentor_pays(uid, pid) VALUES({?}, {?})", S::v('uid', -1), $id_ajoutee);