Welcome Guest, Not a member yet? Register   Sign In
Deprecation Error with Wiredesign's HMVC extension on PHP 7.2
#3

This is not TESTED!

But you can try it, if not it will be a start to fixing the depreciated each() function.

Change line 83 or 84 - in third_party/MX/Modules.php -

PHP Code:
(is_array($module)) ? list($module$params) = each($module) : $params NULL

Add this code and see if it will fix the problem for you.

PHP Code:
if (is_array($module))
{
 
   $temp $module;

 
   $module key($temp);
 
   $params current($temp);
 
   
    list
($module$params);
}
else
{
 
   $params NULL;


Remember this is not TESTED...
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Deprecation Error with Wiredesign's HMVC extension on PHP 7.2 - by InsiteFX - 12-06-2017, 06:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB