Ticket #364 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

view of friend's blogs doesn't work with no friends or no posts (added code to handle this)

Reported by: edfactor Assigned to: nobody
Priority: normal Milestone: 0.9.2
Component: core Version: 0.9.1
Severity: normal Keywords:
Cc: Patch Included: 1
Review Stage: readyforcheckin

Description

In the file mod/blog/lib/weblogs_friends_view.php, it assumes you have friends and then that they have posts. If you have no friends, the query breaks, and you get an error. It's the same if they have no posts.

I added conditional logic (in the patch) that shortens the query, or won't run it at all if there are no friends or posts. I also added new text messages at the end indicating that you don't have friends or posts.

Attachments

weblogfriendsview.diff (2.3 kB) - added by edfactor on 06/05/08 15:42:12.
Patch to include conditional logic for no friends or no posts

Change History

06/05/08 15:42:12 changed by edfactor

  • attachment weblogfriendsview.diff added.

Patch to include conditional logic for no friends or no posts

06/09/08 07:43:37 changed by misja

  • status changed from new to closed.
  • resolution set to fixed.
  • review_stage changed from unreviewed to readyforcheckin.

Patch applied in r1600