<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Imran Hussain pushed to branch master at <a href="https://projects.sucs.org/sucssite/sucs-site">sucssite / sucs-site</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/2338c8ed12583a92af030de05245fde8d4ecc9f0">2338c8ed</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-10-13T14:38:54Z</i>
</div>
<pre class='commit-message'>Fix the bulk renewals function.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
components/susignup-admin.php
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
lib/member_functions.php
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/sucssite/sucs-site/commit/2338c8ed12583a92af030de05245fde8d4ecc9f0#diff-0'>
<strong>
components/susignup-admin.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/components/susignup-admin.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/components/susignup-admin.php
</span><span style="color: #aaaaaa">@@ -180,7 +180,7 @@ function get_renewable_members()
</span> function admin_renew_member($renew_name, $admin_name)
 {
     global $sucsDB;
<span style="color: #000000;background-color: #ffdddd">-    renew_member($renew_name);
</span><span style="color: #000000;background-color: #ddffdd">+    renew_membership($renew_name);
</span>     $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";
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/sucssite/sucs-site/commit/2338c8ed12583a92af030de05245fde8d4ecc9f0#diff-1'>
<strong>
lib/member_functions.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/lib/member_functions.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/lib/member_functions.php
</span><span style="color: #aaaaaa">@@ -104,6 +104,9 @@ function generateLdif($uid, $password, $type, $realname, $username)
</span> function renew_membership($username)
 {
 
<span style="color: #000000;background-color: #ddffdd">+    // we need to the sucs db here
+    global $sucsDB;
+
</span>     // get their details from the sucs db
     $userdata = $sucsDB->Execute("SELECT * FROM members WHERE username=?", array($username));
 
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://projects.sucs.org/sucssite/sucs-site/commit/2338c8ed12583a92af030de05245fde8d4ecc9f0">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://projects.sucs.org/sucssite/sucs-site/commit/2338c8ed12583a92af030de05245fde8d4ecc9f0"}}</script>
</p>
</div>
</body>
</html>