diff --git a/mod/submit.php b/mod/submit.php index d1ceb46f..9d17c6d6 100755 --- a/mod/submit.php +++ b/mod/submit.php @@ -112,14 +112,14 @@ function submit_content(&$a) { if(count($r)) $profile_id = $r[count($r) - 1]['id']; - if(count($r) > 1) + if(count($r) > 1) { q("DELETE FROM `photo` WHERE `profile-id` = %d LIMIT 1", intval($r[0]['id']) ); q("DELETE FROM `profile` WHERE `id` = %d LIMIT 1", intval($r[0]['id']) ); - + } }