From: Evan Prodromou Date: Mon, 8 Sep 2008 20:10:20 +0000 (-0400) Subject: error checking in subscriptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1374e0763e956f619b0d96820597e3f8e8f28187;p=quix0rs-gnu-social.git error checking in subscriptions darcs-hash:20080908201020-84dde-233d38e3cb65f1778a34456193cd3f013e8d94a8.gz --- diff --git a/lib/gallery.php b/lib/gallery.php index c6f1585b4b..a79cde7b83 100644 --- a/lib/gallery.php +++ b/lib/gallery.php @@ -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) ?