mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
php 7 future
This commit is contained in:
parent
e5fab725e1
commit
efcd7ae71f
34 changed files with 649 additions and 654 deletions
|
@ -588,7 +588,7 @@ function get_var($var_name, $default, $multibyte = false)
|
|||
*/
|
||||
function attach_mod_sql_escape($text)
|
||||
{
|
||||
if (function_exists('mysql_real_escape_string'))
|
||||
if (function_exists('mysqli_real_escape_string'))
|
||||
{
|
||||
return DB()->escape_string($text);
|
||||
}
|
||||
|
@ -687,4 +687,4 @@ function attach_mod_sql_build_array($query, $assoc_ary = false)
|
|||
}
|
||||
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue