diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-10-25 13:34:10 -0400 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-10-25 13:34:10 -0400 |
| commit | ce6a42482a37d63e83b14bb7e203e672c0c76b58 (patch) | |
| tree | e1c9eceadbd36b27a805aae217f7a262be5a9eae /dash/dash_functions.php | |
| parent | 5ed4a18a444768dfa7de2a10b827c806c2628b09 (diff) | |
| download | bulletin-ce6a42482a37d63e83b14bb7e203e672c0c76b58.tar.gz | |
Fixed profile pictures glitch
Diffstat (limited to 'dash/dash_functions.php')
| -rw-r--r-- | dash/dash_functions.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dash/dash_functions.php b/dash/dash_functions.php index 56785a5..9aaa78f 100644 --- a/dash/dash_functions.php +++ b/dash/dash_functions.php @@ -19,8 +19,12 @@ function typestr ($type) { function rating_format ($rating = null, $typestr = 'Employer') { return '<span class="ratingdata" data-rating="'.(is_null($rating) ? 'undef' : number_format($rating, 1)).'"></span>'; } +function genpicstr () { + global $b_user; + return 'uimg/'.uniqid($b_user['id'].'_', true).'.png'; +} function picture_format ($picstr = null) { - return is_null($picstr) ? 'uimg/default.png' : 'uimg/'.htmlentities($picstr).'.png'; + return is_null($picstr) ? 'uimg/default.png' : htmlentities($picstr); } function draw_norate_p () { ?> |
