From 1374e0763e956f619b0d96820597e3f8e8f28187 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 8 Sep 2008 16:10:20 -0400 Subject: [PATCH] error checking in subscriptions darcs-hash:20080908201020-84dde-233d38e3cb65f1778a34456193cd3f013e8d94a8.gz --- lib/gallery.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) ?