Skip to content

Loading…

v2.0.18b4 - UserModel RemovePicture() sets the picture as string "NULL" #1126

Closed
sbenes opened this Issue · 1 comment

1 participant

@sbenes

This seems like a bad way to set the photo as Null as I am doing check in my template if the Photo is NULL. I updated my UserModel class to set the field to a value of null instead of string 'NULL'

./applications/dashboard/models/class.usermodel.php

public function RemovePicture($UserID) {
  $this->SetField($UserID, 'Photo', 'NULL');
}

to

public function RemovePicture($UserID) {
  $this->SetField($UserID, 'Photo', NULL);
}

Is this something you can fix in the core so I don't have to keep updating my source each update?

@sbenes

change was committed with my forwarded host patch. thanks!

@sbenes sbenes closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.