tbrehm
2008-09-20 0935854d49e3a269a83b81f764147853a04b711c
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;