Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for Metafox/lib/DB/common.php between version 1.4 and 1.5

version 1.4, 2017/06/09 15:05:06 version 1.5, 2024/11/20 15:48:03
Line 262  class DB_common extends PEAR
Line 262  class DB_common extends PEAR
     function quoteString($string)      function quoteString($string)
     {      {
         $string = $this->quoteSmart($string);          $string = $this->quoteSmart($string);
         if ($string{0} == "'") {          if ($string[0] == "'") {
             return substr($string, 1, -1);              return substr($string, 1, -1);
         }          }
         return $string;          return $string;
Line 471  class DB_common extends PEAR
Line 471  class DB_common extends PEAR
     function quoteBoolean($boolean) {      function quoteBoolean($boolean) {
         return $boolean ? '1' : '0';          return $boolean ? '1' : '0';
     }      }
   
     // }}}      // }}}
     // {{{ quoteFloat()      // {{{ quoteFloat()
   
Line 487  class DB_common extends PEAR
Line 487  class DB_common extends PEAR
     function quoteFloat($float) {      function quoteFloat($float) {
         return "'".$this->escapeSimple(str_replace(',', '.', strval(floatval($float))))."'";          return "'".$this->escapeSimple(str_replace(',', '.', strval(floatval($float))))."'";
     }      }
   
     // }}}      // }}}
     // {{{ escapeSimple()      // {{{ escapeSimple()
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top