Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Resolved issue 0000872: [Butterfly2 and 2.0RC1] Error on picture uplo…
…ad by visitor and admin

git-svn-id: http://piwigo.org/svn/trunk@2624 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rub committed Sep 29, 2008
1 parent c50a7dc commit 547fc51
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions upload.php
Expand Up @@ -27,19 +27,12 @@
// | Includes |
// +-----------------------------------------------------------------------+
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
include_once(PHPWG_ROOT_PATH.'include/upload.class.php');

// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
check_status($conf['upload_user_access']);

// +-----------------------------------------------------------------------+
// | Create upload object |
// +-----------------------------------------------------------------------+
$upload = new Upload();


$username = !empty($_POST['username']) ? $_POST['username']:(is_classic_user() ? $user['username'] : '');
$mail_address = !empty($_POST['mail_address']) ? $_POST['mail_address'] : (is_classic_user() ? $user['email'] : '');
$name = !empty($_POST['name']) ? $_POST['name'] : '';
Expand Down

0 comments on commit 547fc51

Please sign in to comment.