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;

CommentFileSizeAuthor
#2 block_content_notice.patch547 bytesIsland Usurper

Comments

rszrama’s picture

Version: 6.x-2.0-beta3 » 6.x-2.0-beta4
Assigned: Unassigned » Island Usurper
Island Usurper’s picture

Status: Active » Needs review
StatusFileSize
new547 bytes

Since $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.

emmajane’s picture

Looks good, thanks!

Island Usurper’s picture

Status: Needs review » Fixed

Great. Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

devsuresh2005’s picture

Category: bug » support
Priority: Normal » Critical
Status: Closed (fixed) » Active

1. " 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

tr’s picture

Category: support » bug
Priority: Critical » Normal
Status: Active » Closed (fixed)

@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.