/[drupal]/contributions/modules/filestore2/filestore2.module
ViewVC logotype

Diff of /contributions/modules/filestore2/filestore2.module

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

revision 1.19, Fri Oct 8 13:04:15 2004 UTC revision 1.20, Wed Nov 24 22:03:32 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: filestore2.module,v 1.18 2004/10/01 00:08:32 uwe Exp $  // $Id: filestore2.module,v 1.19 2004/10/08 13:04:15 gordon Exp $
3    
4  /*  /*
5   * Filestore2 drupal _hooks()   * Filestore2 drupal _hooks()
# Line 127  function filestore2_insert($node) { Line 127  function filestore2_insert($node) {
127    
128    foreach ($node as $k => $v) {    foreach ($node as $k => $v) {
129      if (in_array($k, $fields)) {      if (in_array($k, $fields)) {
130        $keys[] = check_query($k);        $keys[] = db_escape_string($k);
131        $value[] = $v;        $value[] = $v;
132      }      }
133    }    }
# Line 141  function filestore2_update($node) { Line 141  function filestore2_update($node) {
141    $fields = array("fid", "nid", "fsid", "version", "author", "url");    $fields = array("fid", "nid", "fsid", "version", "author", "url");
142    foreach ($node as $k => $v) {    foreach ($node as $k => $v) {
143      if (in_array($k, $fields)) {      if (in_array($k, $fields)) {
144        $q[] = check_query($k) ." = '$v'";        $q[] = db_escape_string($k) ." = '$v'";
145      }      }
146    }    }
147    

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.2