Skip to content

Commit 4e51d7a

Browse files
authored
Update Prepr.php
1 parent 8afce13 commit 4e51d7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Prepr.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ public function nestedArrayToMultipart(array $array)
327327
return $multipart;
328328
}
329329

330-
public function data_get(array $array, string $variable)
330+
public function data_get($array, string $variable)
331331
{
332-
if(isset($array[$variable])) {
332+
if($array && isset($array[$variable])) {
333333
return $array[$variable];
334334
}
335335
}
336-
}
336+
}

0 commit comments

Comments
 (0)