1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Checks key exists rather than isset

If the default value is set to `null`, `isset` will return `false` even though the key is actually there for a reason.
This commit is contained in:
Gareth Evans 2014-12-03 11:18:29 +00:00 committed by Marco Pivetta
parent f45cf2629e
commit fae0f6a29a

View File

@ -430,7 +430,7 @@ class SchemaTool
$knownOptions = array('comment', 'unsigned', 'fixed', 'default');
foreach ($knownOptions as $knownOption) {
if ( isset($mapping['options'][$knownOption])) {
if (array_key_exists($knownOption, $mapping['options'])) {
$options[$knownOption] = $mapping['options'][$knownOption];
unset($mapping['options'][$knownOption]);