mysql: minor code changes
This commit is contained in:
parent
39a6b7f384
commit
96236f66d3
@ -14,7 +14,7 @@ class mysql {
|
||||
global $config;
|
||||
if (!empty($args)) {
|
||||
$mark_count = substr_count($sql, '?');
|
||||
$positions = array();
|
||||
$positions = [];
|
||||
$last_pos = -1;
|
||||
for ($i = 0; $i < $mark_count; $i++) {
|
||||
$last_pos = strpos($sql, '?', $last_pos + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user