From 8e2419aa04a4540b00893435d0d4897c11fe9b75 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 8 Dec 2011 19:17:37 +0000 Subject: [PATCH] fixed photo upload --- lam/lib/modules/inetOrgPerson.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 9d4ceda9..50d6a1e7 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -1284,7 +1284,9 @@ class inetOrgPerson extends baseModule implements passwordService { * Sets a new photo. */ function process_photo() { - if ($_POST['form_subpage_' . get_class($this) . '_attributes_back']) return array(); + if (!isset($_POST['form_subpage_' . get_class($this) . '_attributes_submit'])) { + return array(); + } $messages = array(); if ($_FILES['photoFile'] && ($_FILES['photoFile']['size'] > 0)) { $handle = fopen($_FILES['photoFile']['tmp_name'], "r");