Ignore:
Timestamp:
Oct 9, 2009, 4:38:54 PM (15 years ago)
Author:
patdenice
Message:

set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can produce notices from PHP 5.3.
Add a @ to avoid this notices.
This functions need to be removed with PHP 6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/common.inc.php

    r3276 r4005  
    2929$t2 = $t1[1].'.'.$t2[1];
    3030
    31 set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
     31@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
    3232
    3333//
     
    3535// precaution to prevent someone trying to break out of a SQL statement.
    3636//
    37 if( !get_magic_quotes_gpc() )
     37if( !@get_magic_quotes_gpc() )
    3838{
    3939  function sanitize_mysql_kv(&$v, $k)
Note: See TracChangeset for help on using the changeset viewer.