summaryrefslogtreecommitdiffstats
path: root/app/model/common.mod.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-04-30 22:34:01 -0400
committerMalf Furious <m@lfurio.us>2016-05-01 01:34:23 -0400
commite9189928e1108d0c1330eb47cc5de20d67f5de51 (patch)
treef8d8f241f1260115f94cffb84e483d7c194a669b /app/model/common.mod.php
parent6d6e62add5976b3afec23d1745302d676ccd88ac (diff)
downloadscrott-e9189928e1108d0c1330eb47cc5de20d67f5de51.tar.gz
scrott-e9189928e1108d0c1330eb47cc5de20d67f5de51.zip
Update setting modal to allow user to remove their own head image
Diffstat (limited to '')
-rw-r--r--app/model/common.mod.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php
index 080c78e..32bdb44 100644
--- a/app/model/common.mod.php
+++ b/app/model/common.mod.php
@@ -79,6 +79,16 @@ class CommonModel extends MasterModel
return;
}
+ if (isset($input['rmImage']))
+ {
+ if ($user->rmHeadImage())
+ $this->logNotice("Image removed");
+ else
+ $this->logError("Error removing user image");
+
+ return;
+ }
+
if ($form->setPasswd)
{
if ($user->validatePassword($form->curPasswd))