unrelated e-notice fix
authoreileen <eileen@fuzion.co.nz>
Sun, 4 Aug 2013 09:37:34 +0000 (21:37 +1200)
committereileen <eileen@fuzion.co.nz>
Sun, 4 Aug 2013 23:32:32 +0000 (11:32 +1200)
CRM/Member/Page/AJAX.php

index e93814df79c84df8b06b721fbc27ad76db2221f3..83707e4b67e8e30172f2ec7799422c327129a6a5 100644 (file)
@@ -67,7 +67,7 @@ WHERE   id = %1";
     // fix the display of the monetary value, CRM-4038
     $details['total_amount'] = CRM_Utils_Money::format($details['total_amount'], NULL, '%a');
     $options = array(ts('No auto-renew option'), ts('Give option, but not required'), ts('Auto-renew required '));
-    $details['auto_renew'] = $options[$details['auto_renew']];
+    $details['auto_renew'] = CRM_Utils_Array::value('auto_renew', $options[$details]);
     echo json_encode($details);
     CRM_Utils_System::civiExit();
   }