Index: creativecommons.class.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/creativecommons/creativecommons.class.php,v
retrieving revision 1.3.4.34
diff -u -p -r1.3.4.34 creativecommons.class.php
--- creativecommons.class.php	17 Aug 2009 18:52:56 -0000	1.3.4.34
+++ creativecommons.class.php	18 Aug 2009 22:55:07 -0000
@@ -48,10 +48,7 @@ class creativecommons_license {
     // Otherwise, load from parameters
     else {
       $this->uri = $license_uri;
-
-      if ($metadata) {
-        $this->metadata = $metadata;
-      }
+      $this->metadata = $metadata;
     }
 
     // Fetch license information if uri present
@@ -63,6 +60,11 @@ class creativecommons_license {
       $this->name = t('None (All Rights Reserved)');
       $this->type = '';
     }
+
+    if (empty($this->metadata)) {
+      // ensure metadata is an array
+      $this->metadata = array();
+    }
   }
 
 
