X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/8084a3d5e37ce07a05510290fcd6952b53a4ce4c..55a2513471e979aa4ed9eb2374ca28bdd06897de:/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');