Skip to content


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

sbenes opened this Issue · 1 comment

1 participant


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'


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


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?


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.