1
0
mirror of synced 2025-01-18 22:41:43 +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 9509bec79a
commit 2fac6272a1

View File

@ -433,7 +433,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]);