mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 15:31:41 +02:00
Fixes #698 - uploaded avatar was being removed unintentionally.
This commit is contained in:
@@ -573,9 +573,9 @@ class e_form
|
||||
|
||||
|
||||
$path = (substr($curVal,0,8) == '-upload-') ? '{e_AVATAR}upload/' : '{e_AVATAR}default/';
|
||||
$curVal = str_replace('-upload-','',$curVal);
|
||||
$newVal = str_replace('-upload-','',$curVal);
|
||||
|
||||
$img = (strpos($curVal,"://")!==false) ? $curVal : $tp->thumbUrl($path.$curVal);
|
||||
$img = (strpos($curVal,"://")!==false) ? $curVal : $tp->thumbUrl($path.$newVal);
|
||||
|
||||
if(!$curVal)
|
||||
{
|
||||
|
Reference in New Issue
Block a user