diff --git a/profile/getProfilePict.php b/profile/getProfilePict.php
index 1a448af3e58a7421981a65768857f246f6a52145..7218f35dc96612d6d15ea45880604f1a92910051 100644
--- a/profile/getProfilePict.php
+++ b/profile/getProfilePict.php
@@ -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";        
     }
 ?>