]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/shownotice.php
better titles in RSS
[quix0rs-gnu-social.git] / actions / shownotice.php
index 7805242379a58be962cdd70b1e399e934f1539f6..4b954d57ba64cc646141dba3081ebaf69ee4b594 100644 (file)
@@ -19,7 +19,7 @@
 
 if (!defined('LACONICA')) { exit(1); }
 
-require_once(INSTALLDIR.'lib/stream.php');
+require_once(INSTALLDIR.'/lib/stream.php');
 
 class ShownoticeAction extends StreamAction {
 
@@ -32,7 +32,9 @@ class ShownoticeAction extends StreamAction {
                        $this->no_such_notice();
                }
 
-               if (!$notice->getProfile()) {
+               $profile = $notice->getProfile();
+               
+               if (!$profile) {
                        $this->no_such_notice();
                }