Closed (fixed)
Project:
Skinr
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2010 at 21:14 UTC
Updated:
31 Dec 2010 at 19:30 UTC
Jump to comment: Most recent file
Need to allow for the possibility that skinr_skin_load() will return NULL when called from skinr_ui_admin_skins()
One-line patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 995794-skinr-skin-load-null.patch | 2.75 KB | coltrane |
| skinr-HEAD.patch | 560 bytes | pillarsdotnet |
Comments
Comment #1
jacineThis looks good to me. Would be good if someone else could take a quick look.
This patch fixes the remaining Simpletest issues causing it to fail right now.
Comment #2
sunWould be beneficial to prepend a comment to this condition in order to explain the edge-case of skinr_ui_admin_skins().
Wrong control structure syntax, see http://drupal.org/coding-standards
Powered by Dreditor.
Comment #3
jacineThanks @sun. I'm not sure what the edge-case is, so yeah, a comment would be nice.
Comment #4
coltraneHow about checking if $skins is !empty() before looping?
Comment #5
jacineOr that... :)
Committed. Thanks! http://drupal.org/cvs?commit=466096