| @@ 315-317 (lines=3) @@ | ||
| 312 | } else { |
|
| 313 | $variable = "'".addslashes(trim($object->{'get'.ucfirst($value)}()))."'"; |
|
| 314 | } |
|
| 315 | if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) { |
|
| 316 | $variable = null; |
|
| 317 | } |
|
| 318 | if ($variable !== null) { |
|
| 319 | $values[] = $variable; |
|
| 320 | $keys[] = $key; |
|
| @@ 336-338 (lines=3) @@ | ||
| 333 | } else { |
|
| 334 | $variable = "'".addslashes(trim($object[$value]))."'"; |
|
| 335 | } |
|
| 336 | if (trim($variable) === '' || trim($variable) === "''" || (is_numeric($variable) && $variable === 0)) { |
|
| 337 | $variable = null; |
|
| 338 | } |
|
| 339 | if ($variable !== null) { |
|
| 340 | $values[] = $variable; |
|
| 341 | $keys[] = $key; |
|