| @@ 202-206 (lines=5) @@ | ||
| 199 | ||
| 200 | switch ($matches[1]) |
|
| 201 | { |
|
| 202 | case 'int': |
|
| 203 | if (!is_numeric($replacement) || (string) $replacement !== (string) (int) $replacement) |
|
| 204 | smf_db_error_backtrace('Wrong value type sent to the database. Integer expected. (' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__); |
|
| 205 | return (string) (int) $replacement; |
|
| 206 | break; |
|
| 207 | ||
| 208 | case 'string': |
|
| 209 | case 'text': |
|
| @@ 162-166 (lines=5) @@ | ||
| 159 | ||
| 160 | switch ($matches[1]) |
|
| 161 | { |
|
| 162 | case 'int': |
|
| 163 | if (!is_numeric($replacement) || (string) $replacement !== (string) (int) $replacement) |
|
| 164 | smf_db_error_backtrace('Wrong value type sent to the database. Integer expected. (' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__); |
|
| 165 | return (string) (int) $replacement; |
|
| 166 | break; |
|
| 167 | ||
| 168 | case 'string': |
|
| 169 | case 'text': |
|