missing brackets
This commit is contained in:
parent
49507a5149
commit
ec7f06ec54
1 changed files with 2 additions and 2 deletions
|
@ -112,14 +112,14 @@ function submit_content(&$a) {
|
||||||
if(count($r))
|
if(count($r))
|
||||||
$profile_id = $r[count($r) - 1]['id'];
|
$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",
|
q("DELETE FROM `photo` WHERE `profile-id` = %d LIMIT 1",
|
||||||
intval($r[0]['id'])
|
intval($r[0]['id'])
|
||||||
);
|
);
|
||||||
q("DELETE FROM `profile` WHERE `id` = %d LIMIT 1",
|
q("DELETE FROM `profile` WHERE `id` = %d LIMIT 1",
|
||||||
intval($r[0]['id'])
|
intval($r[0]['id'])
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue