{"action":"opened","issue":{"url":"https://api.github.com/repos/EvokeNet/humhub/issues/256","repository_url":"https://api.github.com/repos/EvokeNet/humhub","labels_url":"https://api.github.com/repos/EvokeNet/humhub/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/EvokeNet/humhub/issues/256/comments","events_url":"https://api.github.com/repos/EvokeNet/humhub/issues/256/events","html_url":"https://github.com/EvokeNet/humhub/issues/256","id":186359294,"number":256,"title":"Error when navigating to missions","user":{"login":"nathanverrill","id":273429,"avatar_url":"https://avatars.githubusercontent.com/u/273429?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanverrill","html_url":"https://github.com/nathanverrill","followers_url":"https://api.github.com/users/nathanverrill/followers","following_url":"https://api.github.com/users/nathanverrill/following{/other_user}","gists_url":"https://api.github.com/users/nathanverrill/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanverrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanverrill/subscriptions","organizations_url":"https://api.github.com/users/nathanverrill/orgs","repos_url":"https://api.github.com/users/nathanverrill/repos","events_url":"https://api.github.com/users/nathanverrill/events{/privacy}","received_events_url":"https://api.github.com/users/nathanverrill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T18:23:05Z","updated_at":"2016-10-31T18:23:05Z","closed_at":null,"body":"as this player:\r\nhttp://dev.humhub.m00.com.br/index.php?r=user%2Fprofile&uguid=16165b6c-5576-402a-b5a5-8af5429febf9\r\n\r\nI clicked on:\r\nmissions in top nav\r\n\r\nAnd got this error\r\nPHP Parse Error – yii\\base\\ErrorException\r\n\r\nsyntax error, unexpected 'if' (T_IF)\r\n1. in /srv/www/dev.humhub.m00.com.br/protected/modules/missions/controllers/EvidenceController.php at line 513\r\n504505506507508509510511512513514515516517518519520521522                //must leave comment if giving a grade of 0\r\n                AlertController::createAlert(\"Error!\", Yii::t('MissionsModule.base', 'Please explain 0'));\r\n                return;\r\n            }\r\n \r\n            $user = User::findOne($evidence->content->user_id);\r\n            $is_group_activity = Activities::findOne(['id' => $evidence->activities_id])->is_group\r\n \r\n            //if user's editing vote\r\n            if($vote){\r\n                $pointChange = $grade - $vote->value;\r\n \r\n                // mentor votes are worth twice as much\r\n                if ($user->group->name == \"Mentors\") {\r\n                    $pointChange = $pointChange * 2;\r\n                }\r\n \r\n                if(empty($vote->comment) && !empty($comment)){\r\n \r\n2. yii\\base\\ErrorHandler::handleFatalError()\r\n$_GET = [\r\n    'r' => 'missions/evidence/missions',\r\n    'sguid' => '27f72ce5-f4f7-4c2a-893e-b214ecac1910',\r\n];\r\n\r\n$_COOKIE = [\r\n    '_csrf' => '43567113d16e6ef05b63264e687d843be8f4e9f451d9965e76e8e72b00696e88a:2:{i:0;s:5:\"_csrf\";i:1;s:32:\"p2e0G4qHJUq_nfFe54UoToQkv8WDzs6S\";}',\r\n    'pm_user-spaces-panel' => 'expanded',\r\n    'pm_space-members-panel' => 'expanded',\r\n    'pm_groups-statistics-panel' => 'expanded',\r\n    'pm_new-spaces-panel' => 'expanded',\r\n    'language' => '0f5dc5ff9d90b454f1f6efe09cb9011d1e1e04254e5e60c5c66138cf640adfe5a:2:{i:0;s:8:\"language\";i:1;s:2:\"en\";}',\r\n    'PHPSESSID' => 'gnta28vjvgcttvvilck6rcj0n5',\r\n    'pm_profile-follower-panel' => 'expanded',\r\n    'pm_new-people-panel' => 'expanded',\r\n    'pm_user-statistics-panel' => 'expanded',\r\n    'pm_profile-following-panel' => 'expanded',\r\n    '_gat' => '1',\r\n    '_identity' => '18135249c15fa6b3c232e37abfaaa1f933b835510c0ecbfbf3d25b25e1fdd92ba:2:{i:0;s:9:\"_identity\";i:1;s:51:\"[48,\"73ec8dfe-93f3-406d-a15f-b86151b8bbff\",2592000]\";}',\r\n    '_ga' => 'GA1.3.521622355.1477168563',\r\n];\r\n\r\n$_SESSION = [\r\n    '__flash' => [],\r\n    '__returnUrl' => '/index.php',\r\n    '__id' => 127,\r\n];\r\n"}}
{"actor":{"display_login":"nathanverrill"}}