Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
user.module
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
18 Jan 2006 at 17:52 UTC
Updated:
25 Jan 2006 at 04:41 UTC
Jump to comment: Most recent file
I noticed this with the last bug in the same block but forgot to patch it.. This is a very unlikely situation when the user list is empty but the block is enabled.. but it probably has to be added in anyways.
Cheers
-K
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | user.module_31.patch | 1.04 KB | Zen |
| #4 | no_output_on_no_values.user.patch | 723 bytes | robin monks |
| user.module_30.patch | 704 bytes | Zen |
Comments
Comment #1
robin monks commented+1
All works well and looks good.
Robin
Comment #2
dries commentedIt's probably better to put the check in theme_user_list(). See theme_item_list() for an example. Also, maybe you should use !empty() rather than isset().
Comment #3
Uwe Hermann commentedNeeds more work.
Comment #4
robin monks commentedNew patch.
Comment #5
Zen commentedSorry mate - didn't notice that you were working on a patch for this too :)
Either way, the attached patch also covers a similar issue with the Who's online block. Also, the return() should be outside the empty() check, else I don't think we'll get a block, empty as it may be.
Cheers
-K
Comment #6
Bèr Kessels commentedshould it not be isset() ?
Comment #7
Bèr Kessels commentedNM my last comment. I had this one in a tab. and should have refreshed before commenting.
Anyway. I tested zens patch, and it works as advertised.
Comment #8
Zen commentedThanks for the speedy reviews :)
Cheers,
-K
Comment #9
dries commentedCommitted to HEAD. Thanks.
Comment #10
Zen commented