[SUCS Devel] [Git][sucssite/sucs-site][master] Fix the bulk renewals function.

Imran Hussain imranh at sucs.org
Tue Oct 13 14:39:15 BST 2015


Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
2338c8ed by Imran Hussain at 2015-10-13T14:38:54Z
Fix the bulk renewals function.

- - - - -


2 changed files:

- components/susignup-admin.php
- lib/member_functions.php


Changes:

=====================================
components/susignup-admin.php
=====================================
--- a/components/susignup-admin.php
+++ b/components/susignup-admin.php
@@ -180,7 +180,7 @@ function get_renewable_members()
 function admin_renew_member($renew_name, $admin_name)
 {
     global $sucsDB;
-    renew_member($renew_name);
+    renew_membership($renew_name);
     $q = "SELECT email, typename FROM members, member_type WHERE username=?  AND type=member_type.id;";
     $r = $sucsDB->Execute($q, array($renew_name));
     $message = "Account Renewal notification\n\n";


=====================================
lib/member_functions.php
=====================================
--- a/lib/member_functions.php
+++ b/lib/member_functions.php
@@ -104,6 +104,9 @@ function generateLdif($uid, $password, $type, $realname, $username)
 function renew_membership($username)
 {
 
+    // we need to the sucs db here
+    global $sucsDB;
+
     // get their details from the sucs db
     $userdata = $sucsDB->Execute("SELECT * FROM members WHERE username=?", array($username));
 



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/2338c8ed12583a92af030de05245fde8d4ecc9f0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20151013/a203b959/attachment.html>


More information about the Devel mailing list