Skip to content
Snippets Groups Projects
Commit a328cca8 authored by Muhammad Umar Fariz Tumbuan's avatar Muhammad Umar Fariz Tumbuan
Browse files

Benerin bug getProfilePict.php: membuat dapat menangani kasus jika user belum menset avatarnya

parent 862fa11d
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
......@@ -6,6 +6,9 @@
mysqli_close($con);
if (isset($row['pict'])) {
header("Content-type: image/jpeg");
echo $row['pict'];
echo $row['pict'];
} else {
header("Content-type: image/jpeg");
echo "../img/default_profile.jpeg";
}
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment