]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apisearchatom.php
DeletenoticeForm is its own class now
[quix0rs-gnu-social.git] / actions / apisearchatom.php
index fdf95f1ce9fdcd8bc5290ba8d078ca8d82f25f52..b686edb00aeabb9a89e0243e23f1bf93ec6a59ae 100644 (file)
@@ -339,7 +339,7 @@ class ApiSearchAtomAction extends ApiPrivateAuthAction
         $source = null;
 
         $ns = $notice->getSource();
-        if ($ns) {
+        if ($ns instanceof Notice_source) {
             if (!empty($ns->name) && !empty($ns->url)) {
                 $source = '<a href="'
                    . htmlspecialchars($ns->url)