fix crash when generating an album with only videos in subalbums
authorgc <gc>
Sat, 18 Jun 2005 00:22:19 +0000 (00:22 +0000)
committergc <gc>
Sat, 18 Jun 2005 00:22:19 +0000 (00:22 +0000)
bin/booh-backend

index b2cd7ef69b060e4523bb303556d442d1ea3b4ae6..6be3802ede5e53ee4506595b00e34edfc609f7da 100755 (executable)
@@ -923,9 +923,11 @@ def walk_source_dir
                     end
                     line
                 }
-                substInFile("#{dest_dir}/image-#{sizeobj['name']}.html") { |line|
-                    sub_previous_next_album(previous_album, next_album, line)
-                }
+                if xmldir.child_byname_notattr('image', 'deleted')
+                    substInFile("#{dest_dir}/image-#{sizeobj['name']}.html") { |line|
+                        sub_previous_next_album(previous_album, next_album, line)
+                    }
+                end
             end
         end
     }