diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-09-08 16:10:20 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-09-08 16:10:20 -0400 |
commit | 1374e0763e956f619b0d96820597e3f8e8f28187 (patch) | |
tree | 557fcd336ad66018827fbb9713f6af1d003f1dad /lib | |
parent | 4af339345219b5935bc804c6c56038b8e91a694d (diff) |
error checking in subscriptions
darcs-hash:20080908201020-84dde-233d38e3cb65f1778a34456193cd3f013e8d94a8.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gallery.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gallery.php b/lib/gallery.php index c6f1585b4..a79cde7b8 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) ? |