Skip to content

Commit d7b23a3

Browse files
committed
Fix unhandled notice
1 parent 9425f68 commit d7b23a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonPatch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public static function patch($doc, $patches, $simplexml_mode=false)
8888

8989
foreach ($patches as $patch)
9090
{
91-
$op = $patch['op'];
92-
$path = $patch['path'];
91+
$op = isset($patch['op']) ? $patch['op'] : null;
92+
$path = isset($patch['path']) ? $patch['path'] : null;
9393

9494
if (empty($op))
9595
{

0 commit comments

Comments
 (0)