mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 19:00:26 +02:00
Replaced deprecated db_Fetch()
This commit is contained in:
@@ -76,6 +76,8 @@ plugins:
|
|||||||
enabled: false
|
enabled: false
|
||||||
CleanCode/ElseExpression:
|
CleanCode/ElseExpression:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
UnusedLocalVariable:
|
||||||
|
enabled: false
|
||||||
config:
|
config:
|
||||||
file_extensions: "php"
|
file_extensions: "php"
|
||||||
rulesets: "cleancode,unusedcode,codesize"
|
rulesets: "cleancode,unusedcode,codesize"
|
||||||
|
@@ -51,7 +51,7 @@ class db_table_admin
|
|||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
$row = $sql->db_Fetch('num');
|
$row = $sql->fetch('num');
|
||||||
$tmp = str_replace("`", "", stripslashes($row[1])).';'; // Add semicolon to work with our parser
|
$tmp = str_replace("`", "", stripslashes($row[1])).';'; // Add semicolon to work with our parser
|
||||||
$count = preg_match_all("#CREATE\s+?TABLE\s+?`?({$prefix}{$table_name})`?\s+?\((.*?)\)\s+?(?:TYPE|ENGINE)\s*\=\s*(.*?);#is", $tmp, $matches, PREG_SET_ORDER);
|
$count = preg_match_all("#CREATE\s+?TABLE\s+?`?({$prefix}{$table_name})`?\s+?\((.*?)\)\s+?(?:TYPE|ENGINE)\s*\=\s*(.*?);#is", $tmp, $matches, PREG_SET_ORDER);
|
||||||
if ($count === FALSE)
|
if ($count === FALSE)
|
||||||
|
Reference in New Issue
Block a user