diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-06 16:24:27 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-06 16:24:27 -0500 |
| commit | b079f51028571bc603b8d43761c29ff56273bffc (patch) | |
| tree | 98e9375fa15667ae6138794a2789215a06148713 /php/types.php | |
| parent | 406d1370fac05bb01df8bee7678453689cd88228 (diff) | |
| download | mal-b079f51028571bc603b8d43761c29ff56273bffc.tar.gz mal-b079f51028571bc603b8d43761c29ff56273bffc.zip | |
C,PHP,Python: stepA fixup. All tests/impls pass!
Diffstat (limited to 'php/types.php')
| -rw-r--r-- | php/types.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/php/types.php b/php/types.php index 6094558..fa57266 100644 --- a/php/types.php +++ b/php/types.php @@ -167,7 +167,9 @@ function _dissoc_BANG($hm) { $args = func_get_args(); for ($i=1; $i<count($args); $i++) { $ktoken = $args[$i]; - unset($hm[$ktoken]); + if ($hm && $hm->offsetExists($ktoken)) { + unset($hm[$ktoken]); + } } return $hm; } |
