explain what happened here

This commit is contained in:
zotlabs 2017-12-04 21:39:53 -08:00
parent 24d256e253
commit d4acf41192

View File

@ -8,6 +8,9 @@ class Update extends \Zotlabs\Web\Controller {
$profile_uid = intval($_GET['p']);
// it's probably safe to do this for all modules and not just a limited subset,
// but it needs to be verified.
if((! $profile_uid) && in_array(argv(1),['display','search','pubstream','home']))
$profile_uid = (-1);