Fixed [E_WARNING] array_diff(): Argument #1 is not an array src/addons/XFMG/Service/Album/SharedUserManager.php:83

gotski

Active member
Affected version
2
  • ErrorException: [E_WARNING] array_diff(): Argument #1 is not an array
  • src/addons/XFMG/Service/Album/SharedUserManager.php:83
  • Generated by: Member
  • Dec 12, 2017 at 4:51 AM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] arr...', '/var/www/root/d...', 83, Array)
#1 src/addons/XFMG/Service/Album/SharedUserManager.php(83): array_diff(NULL, Array)
#2 src/addons/XFMG/Service/Album/Editor.php(119): XFMG\Service\Album\SharedUserManager->saveSharedUsers()
#3 src/XF/Service/ValidateAndSavableTrait.php(40): XFMG\Service\Album\Editor->_save()
#4 src/addons/XFMG/Pub/Controller/Album.php(209): XFMG\Service\Album\Editor->save()
#5 src/XF/Mvc/Dispatcher.php(249): XFMG\Pub\Controller\Album->actionChangePrivacy(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XFMG:Album', 'ChangePrivacy', 'json', Object(XF\Mvc\ParameterBag), 'xfmg', Object(XFMG\Pub\Controller\Album), NULL)
#7 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#9 src/XF.php(328): XF\App->run()
#10 index.php(13): XF::runApp('XF\\Pub\\App')
#11 {main}
Request state
array(4) {
["url"] => string(46) "/media/albums/albumname.4447/change-privacy"
["referrer"] => string(60) "https://www.sitename.net/media/albums/albumname.4447/"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["view_privacy"] => string(7) "private"
["add_privacy"] => string(7) "private"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(32) "/media/albums/albumname.4447/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Back
Top Bottom