Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Feb 2009 at 10:51 UTC
Updated:
30 Dec 2009 at 05:38 UTC
Jump to comment: Most recent file
On the front page of an empty site (rare, I know) section I get an error about content not being defined.
In the file uc_catalog.module I can suppress this error by adjusting the following function:
387 function uc_catalog_block($op = 'list', $delta = 0, $edit = array()) {
388 $content = ""; *************** new line ****************
389 switch ($op) {
390 case 'list':
391 $blocks[0]['info'] = variable_get('uc_catalog_name', t('Catalog'));
392 return $blocks;
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | block_content_notice.patch | 547 bytes | Island Usurper |
Comments
Comment #1
rszrama commentedComment #2
Island Usurper commentedSince $content is set on line 412, and then always used on line 418, I think we can just initialize it then instead of adding to it. Let me know if this patch doesn't work.
Comment #3
emmajane commentedLooks good, thanks!
Comment #4
Island Usurper commentedGreat. Committed.
Comment #6
devsuresh2005 commented1. " Ubercart Multi Catalog Blocks " actually this a module which is released for drupal 5x, Is there any equivalent module for Drupal 6x? My expectation is i need to add multiple catalog..
2. How to add Image field in taxonomy add/edit terms page?
Thanks
Suresh Kumar
Comment #7
tr commented@devsuresh2005, please don't hijack threads. Your issue has nothing to do with the subject of this long-closed thread. If you have a question, open a new thread. With Ubercart support requests, you should be posting in the ubercart.org forums.