provide empty location
This commit is contained in:
@@ -18,6 +18,11 @@ $numLat = $_POST['lat'];
|
||||
$strDistrict = $_POST['district'];
|
||||
$boolUploadOk=false;
|
||||
|
||||
//Leere Einträge verhindern
|
||||
if (empty($strUsername) || empty($numLng) || empty($numLat)) {
|
||||
die("not valid!");
|
||||
}
|
||||
|
||||
if ($boolUpload && !empty($_FILES['uploadfile']['name'])) {
|
||||
$uploadfile = $uploaddir . basename($_FILES['uploadfile']['name']);
|
||||
$fileinfo = @getimagesize($_FILES["uploadfile"]["tmp_name"]);
|
||||
|
||||
Reference in New Issue
Block a user