1
0
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:
Cameron
2014-08-21 13:15:47 -07:00
parent 339bd115d0
commit d6dc4aa716
2 changed files with 23 additions and 4 deletions

View File

@@ -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)
{