Very small patch to remove notices

pletcher - December 16, 2008 - 09:36
Project:Creative Commons Lite
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

In the implementation of hook_nodeapi, $output is returned undefined. Since the current implementation doesn't return anything currently, removing $output has no negative consequences, other than removing the notices it causes.

Index: creativecommons_lite.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/creativecommons_lite/creativecommons_lite.module,v
retrieving revision 1.3.2.2
diff -u -p -r1.3.2.2 creativecommons_lite.module
--- creativecommons_lite.module 14 Nov 2008 07:00:28 -0000   1.3.2.2
+++ creativecommons_lite.module 16 Dec 2008 09:32:04 -0000
@@ -441,8 +441,7 @@ function creativecommons_lite_nodeapi(&$
     case 'rss item':
       break;
   }

-  return $output; 
+  return; 
}

 
 

Drupal is a registered trademark of Dries Buytaert.