[opw-web] Fix bug with project delete
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Fix bug with project delete
- Date: Tue, 11 Mar 2014 19:11:53 +0000 (UTC)
commit fbc05f9d2b61a5217033b52729fd46959dd13e59
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Mar 11 15:04:57 2014 -0400
Fix bug with project delete
Was using wrong variable name
modules/mod_view_projects.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/mod_view_projects.php b/modules/mod_view_projects.php
index 087013d..3d013d0 100644
--- a/modules/mod_view_projects.php
+++ b/modules/mod_view_projects.php
@@ -387,11 +387,11 @@ else if ($action == 'delete')
{
$sql = "DELETE FROM {$db->prefix}participants " .
"WHERE project_id = ?";
- $db->query($sql, $id);
+ $db->query($sql, $project_id);
$sql = "DELETE FROM {$db->prefix}projects " .
"WHERE id = ?";
- $db->query($sql, $id);
+ $db->query($sql, $project_id);
// Purge the project cache
$cache->purge('projects');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]