|
From: <luc...@us...> - 2013-11-26 23:01:28
|
Revision: 12234
http://sourceforge.net/p/xoops/svn/12234
Author: luciorota
Date: 2013-11-26 23:01:25 +0000 (Tue, 26 Nov 2013)
Log Message:
-----------
fixed bug in submit form when anonymous users try to submit
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-11-26 17:15:27 UTC (rev 12233)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-11-26 23:01:25 UTC (rev 12234)
@@ -447,7 +447,7 @@
include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
include_once XOOPS_ROOT_PATH . '/class/tree.php';
- $groups = $xoopsUser->getGroups();
+ $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : array(0 => XOOPS_GROUP_ANONYMOUS);
$use_mirrors = $this->wfdownloads->getConfig('enable_mirrors');
|