X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/8084a3d5e37ce07a05510290fcd6952b53a4ce4c..29e51afe9ef63c74ad8d770bd637d982ec2c85f1:/src/Tweeper.php diff --git a/src/Tweeper.php b/src/Tweeper.php index 831f47d..f25ea25 100644 --- a/src/Tweeper.php +++ b/src/Tweeper.php @@ -255,6 +255,10 @@ class Tweeper { // element names, so remove it. unset($data["qe"]); + // The "knobs" object contains elements with undefined namespaces, so + // remove it to silence an error message. + unset($data["knobs"]); + $json = json_encode($data); return Tweeper::jsonToXml($json, 'instagram');