<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -158,7 +158,7 @@ class PeopleController &lt; ApplicationController
     end
 
     @mine = Conference.upcoming_for_person(@user)
-    @can_define_nametag = @user and @user.has_admin_task?('sys_conf_adm')
+    @can_define_nametag = (@user and @user.has_admin_task?('sys_conf_adm'))
   end
 
   # General personal information
@@ -301,6 +301,7 @@ class PeopleController &lt; ApplicationController
   end
 
   def process_photo(person, photo)
+    return nil if !photo or photo.is_a? String
     begin
       person.photo.destroy if person.has_photo?
       person_photo = person.build_photo</diff>
      <filename>app/controllers/people_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f335a1ddd28501de199f44b8f6d6a0fcc88ada13</id>
    </parent>
  </parents>
  <author>
    <name>Gunnar Wolf</name>
    <email>gwolf@gwolf.org</email>
  </author>
  <url>http://github.com/gwolf/comas/commit/1d5e292768c901369a57ab31fa8ea1e0965e499e</url>
  <id>1d5e292768c901369a57ab31fa8ea1e0965e499e</id>
  <committed-date>2009-10-01T12:37:12-07:00</committed-date>
  <authored-date>2009-10-01T12:37:12-07:00</authored-date>
  <message>Two further small bugs squished</message>
  <tree>5a72c96f3c87ac699cb957794aa965fd77b156ce</tree>
  <committer>
    <name>Gunnar Wolf</name>
    <email>gwolf@gwolf.org</email>
  </committer>
</commit>
