error checking in subscriptions

darcs-hash:20080908201020-84dde-233d38e3cb65f1778a34456193cd3f013e8d94a8.gz
This commit is contained in:
Evan Prodromou 2008-09-08 16:10:20 -04:00
parent 4af3393452
commit 1374e0763e

View File

@ -92,8 +92,14 @@ class GalleryAction extends Action {
break;
}
$other = Profile::staticGet($this->get_other($subs));
$other_id = $this->get_other($subs);
$other = Profile::staticGet($other_id);
if (!$other) {
common_log(LOG_WARNING, 'No matching profile for ' . $other_id);
continue;
}
common_element_start('li');
common_element_start('a', array('title' => ($other->fullname) ?