Get your own customer support community
 

Minor errors in VuzitPHP Vuzit_Document class

There seem to be a couple of small problems with the VuzitPHP library (version 1.1.0), in the Vuzit_Document::upload() method.

The first one looks like a typo: there's a parameter "$fileType" that's defaulted to null, but when it's tested (on line 294), it's referred to as "$file_type". That causes a PHP notice to be thrown because $file_type is uninitialized.

Secondly, upon success the ID is set (on line 339) to $xml->web_id. However, that's a SimpleXML element object, not a scalar, so the getId() method will throw a notice (on PHP 5.2.10).
 
happy I’m happy
Inappropriate?
1 person has this problem

User_default_medium