/[drupal]/contributions/modules/ecommerce/address/address.module
ViewVC logotype

Diff of /contributions/modules/ecommerce/address/address.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7, Fri Oct 22 19:52:19 2004 UTC revision 1.8, Wed Nov 24 22:03:32 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: address.module,v 1.6.2.1 2004/10/22 19:49:30 mathias Exp $  // $Id: address.module,v 1.7 2004/10/22 19:52:19 mathias Exp $
3    
4  /********************************************************************  /********************************************************************
5   * Drupal Hooks   * Drupal Hooks
# Line 200  function address_save($edit) { Line 200  function address_save($edit) {
200    if ($aid) {    if ($aid) {
201      foreach ($edit as $key => $value) {      foreach ($edit as $key => $value) {
202        if (in_array($key, $fields)) {        if (in_array($key, $fields)) {
203          $q[] = check_query($key) ." = '%s'";          $q[] = db_escape_string($key) ." = '%s'";
204          $v[] = $value;          $v[] = $value;
205        }        }
206      }      }
# Line 209  function address_save($edit) { Line 209  function address_save($edit) {
209    else {    else {
210      foreach ($edit as $key => $value) {      foreach ($edit as $key => $value) {
211        if (in_array($key, $fields)) {        if (in_array($key, $fields)) {
212          $k[] = check_query($key);          $k[] = db_escape_string($key);
213          $v[] = $value;          $v[] = $value;
214          $s[] = "'%s'";          $s[] = "'%s'";
215        }        }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.2