tbrehm
2008-09-21 490039c09f7f11333a93e37de9352c5a7c25e4a9
interface/lib/classes/db_mysql.inc.php
@@ -160,10 +160,14 @@
        return $this->quote($formfield);
    }
      
   /** Escapes quotes in variable. addslashes() */
   /** Escapes quotes in variable. mysql_real_escape_string() */
    public function quote($formfield)
    {
        return addslashes($formfield);
    {
      if(!$this->connect()){
         $this->updateError('WARNING: mysql_connect: Used addslashes instead of mysql_real_escape_string');
         return addslashes($formfield);
      }
        return mysql_real_escape_string($formfield, $this->linkId);
    }
      
   /** Unquotes a variable, strip_slashes() */
@@ -278,7 +282,7 @@
      return true;
   }
   
   //** Updates a record and saves the changes into the datalog
   //** Inserts a record and saves the changes into the datalog
   public function datalogInsert($tablename, $insert_data, $index_field) {
      global $app;