diff --git node_gallery.pages.inc node_gallery.pages.inc
index f30bf8c..73da4cb 100644
--- node_gallery.pages.inc
+++ node_gallery.pages.inc
@@ -388,7 +388,8 @@ function node_gallery_manage_images_submit(&$form, &$form_state) {
             $image_node->newgid = $image_node->gid;
           }
         }
-        if (in_array('author', $relationship['settings']['manage_images_fields'])) {
+        // Use strict comparison because the array can contain zeros.
+        if (in_array('author', $relationship['settings']['manage_images_fields'], TRUE)) {
           $new_author = user_load(array('name' => $image_node->name));
           $image_node->uid = $new_author->uid;
           $image_node->created = strtotime($image_node->date);
