projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/Tweeper.php: silence error message when processing Instagram json
[tweeper.git]
/
src
/
Tweeper.php
diff --git
a/src/Tweeper.php
b/src/Tweeper.php
index
831f47d
..
f25ea25
100644
(file)
--- a/
src/Tweeper.php
+++ b/
src/Tweeper.php
@@
-255,6
+255,10
@@
class Tweeper {
// element names, so remove it.
unset($data["qe"]);
// 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');
$json = json_encode($data);
return Tweeper::jsonToXml($json, 'instagram');