1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Load userclass object if not already there

This commit is contained in:
e107steved 2008-11-29 15:27:55 +00:00
parent a68470b036
commit 171f6c6fad

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/upload.php,v $
| $Revision: 1.6 $
| $Date: 2008-11-14 06:01:06 $
| $Author: e107coders $
| $Revision: 1.7 $
| $Date: 2008-11-29 15:27:55 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
require_once("../class2.php");
@ -95,11 +95,16 @@ if ($action == "dl")
require_once(e_HANDLER.'upload_handler.php');
require_once("auth.php");
require_once(e_HANDLER."userclass_class.php");
require_once(e_HANDLER.'userclass_class.php');
$gen = new convert;
require_once(e_HANDLER."form_handler.php");
require_once(e_HANDLER.'form_handler.php');
$rs = new form;
// Need the userclass object for class selectors
if (!is_object($e_userclass)) { $e_userclass = new user_class; }
if (isset($_POST['optionsubmit']))
{
$pref['upload_storagetype'] = $_POST['upload_storagetype'];