From ce6a42482a37d63e83b14bb7e203e672c0c76b58 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Wed, 25 Oct 2017 13:34:10 -0400 Subject: Fixed profile pictures glitch --- dash/dash_functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dash/dash_functions.php') 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 ''; } +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 () { ?> -- cgit v1.2.3