nusoap get_class
authormarc.nachin <you@example.commarc.nachin@auf.org>
Fri, 29 Jun 2012 13:11:07 +0000 (15:11 +0200)
committermarc.nachin <you@example.commarc.nachin@auf.org>
Fri, 29 Jun 2012 13:11:07 +0000 (15:11 +0200)
lodel-0.9/scripts/nusoap.php

index 906277d..72c4fd5 100644 (file)
@@ -267,7 +267,7 @@ class nusoap_base {
        function serialize_val($val,$name=false,$type=false,$name_ns=false,$type_ns=false,$attributes=false,$use='encoded'){
        if(is_object($val) && 
           (get_class($val) == 'soapval') ||
-          (get_class($val) == 'servooattachment') ) {
+          (gettype($val) == 'object' && get_class($val) == 'servooattachment') ) {
                return $val->serialize($use);
         }
        $this->debug( "in serialize_val: $val, $name, $type, $name_ns, $type_ns, $attributes, $use");