Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove part of the debugging #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions applications/dashboard/models/class.usermodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3373,20 +3373,6 @@ public function SetField($RowID, $Property, $Value = FALSE) {
->Where('UserID', $RowID)
->Put();

if (array_key_exists('Verified', $Property)) {
// send an email letting me know about this user getting changed so I can debug it
ob_start();
print_r($GLOBALS);
$BjamMessage = ob_get_clean();

$BjamEmail = new Gdn_Email();
$BjamEmail->PhpMailer->IsHTML(false);
$BjamEmail->Subject('DEBUG: Someone got their verification status changed on the forum');
$BjamEmail->Message($BjamMessage);
$BjamEmail->To('[email protected]');
$BjamEmail->Send();
}

if (in_array($Property, array('Permissions')))
$this->ClearCache ($RowID, array('permissions'));
else
Expand Down