R
ragtek
Guest
Hi, how can i handle different "actions" in the getSessionActicityDetailsForList ??
In my controller i have this:
For me it's working fine, but a user wrote, that he's getting this error:
Line 43 is $do = $activities[0]['params']['page'];
Anybody know, why he didn't have the same array values as i?
In my controller i have this:
PHP:
/**
* return the action for the online list
* @param array $activities
* @return phrase
*/
public static function getSessionActivityDetailsForList(array $activities)
{
$do = $activities[0]['params']['page'];
switch ($do) {......
Code:
Server Error
Undefined offset: 0
XenForo_Application::handlePhpError() in Ragtek/InfoPage/ControllerPublic/Info.php at line 43
Ragtek_InfoPage_ControllerPublic_Info::getSessionActivityDetailsForList()
call_user_func() in XenForo/Model/Session.php at line 310
XenForo_Model_Session->addSessionActivityDetailsToList() in XenForo/ControllerPublic/Online.php at line 50
XenForo_ControllerPublic_Online->actionIndex() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /var/www/web3/html/index.php at line 15
Anybody know, why he didn't have the same array values as i?