]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
two undefined variables in noticelist.php
authorEvan Prodromou <evan@prodromou.name>
Sat, 20 Dec 2008 20:43:20 +0000 (15:43 -0500)
committerEvan Prodromou <evan@prodromou.name>
Sat, 20 Dec 2008 20:43:20 +0000 (15:43 -0500)
darcs-hash:20081220204320-84dde-cc64afc5ad47f07ace499fe932f59f898dd8f0dd.gz

lib/noticelist.php

index 5b65f586fc8297c0ed9044772f375ca10fe168ab..415c062e4675e3d11bd78ba72887df61b7c78598 100644 (file)
@@ -143,7 +143,7 @@ class NoticeListItem {
     function show_notice_link() {
                $noticeurl = common_local_url('shownotice', array('notice' => $this->notice->id));
                # XXX: we need to figure this out better. Is this right?
-               if (strcmp($this->notice->uri, $this->noticeurl) != 0 && preg_match('/^http/', $this->notice->uri)) {
+               if (strcmp($this->notice->uri, $noticeurl) != 0 && preg_match('/^http/', $this->notice->uri)) {
                        $noticeurl = $this->notice->uri;
                }
                common_element_start('a', array('class' => 'permalink',
@@ -159,7 +159,7 @@ class NoticeListItem {
                if ($this->notice->source) {
                        common_element('span', null, _(' from '));
             $source_name = _($this->notice->source);
-            switch ($source) {
+            switch ($this->notice->source) {
              case 'web':
              case 'xmpp':
              case 'mail':