Skip to content

Commit

Permalink
Fix for PHP7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 17, 2017
1 parent b07895a commit bbf755f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/includes/nusoap/lib/nusoap.php
Expand Up @@ -6374,7 +6374,9 @@ function addComplexType($name,$typeClass='complexType',$phpType='array',$composi
$elements = $eElements;
}

if (count($attrs) > 0) {
// @CHANGE LDR FIX for PHP7.2
//if (count($attrs) > 0) {
if (is_array($attrs) && count($attrs) > 0) {
foreach($attrs as $n => $a){
// expand each attribute
foreach ($a as $k => $v) {
Expand Down

0 comments on commit bbf755f

Please sign in to comment.