[opw-web] Fix bug in approving/rejecting projects



commit 5a68afb045b4df69d6079553c97275633c77bd6f
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Mar 11 14:07:20 2014 -0400

    Fix bug in approving/rejecting projects

 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 a7775b6..998af74 100644
--- a/modules/mod_view_projects.php
+++ b/modules/mod_view_projects.php
@@ -814,9 +814,9 @@ else if ($action == 'approve' || $action == 'reject')
     // Set the project as approved
     $sql = "UPDATE {$db->prefix}projects " .
            "SET is_accepted = :flag " .
-           "WHERE id = :program_id";
+           "WHERE id = :project_id";
     $db->query($sql, array('flag' => $flag,
-                           'program_id' => $program_id));
+                           'project_id' => $project_id));
 
     // Purge the project cache
     $cache->purge('projects');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]