missing brackets

This commit is contained in:
friendica 2012-06-19 16:38:03 -07:00
parent 49507a5149
commit ec7f06ec54
1 changed files with 2 additions and 2 deletions

View File

@ -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'])
);
}
}