--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -80,6 +80,8 @@
   end
 
   def revision_link(revision)
+    # Following line allows this to work with older databases
+    revision = revision.to_s
     if /^[\d]+$/ === revision
       url = SystemSetting['scm.url']
     else