[opw-web] Fixup



commit 83da04f7c6363e634dbd76611b320789eceb932f
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat Mar 8 22:56:40 2014 -0500

    Fixup

 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 e9fe568..2f69abe 100644
--- a/modules/mod_view_projects.php
+++ b/modules/mod_view_projects.php
@@ -228,7 +228,7 @@ if ($action == 'editor')
                 {
                     // Get existing role of the new mentor
                     $sql = "SELECT role FROM {$db->prefix}roles " .
-                           "WHERE username = :new_mentor' " .
+                           "WHERE username = :new_mentor " .
                            "AND program_id = :program_id";
                     $role_data = $db->query($sql, $params, true);
 
@@ -268,7 +268,7 @@ if ($action == 'editor')
                         // Insert the new mentor
                         $sql = "INSERT INTO {$db->prefix}participants " .
                                "(username, project_id, program_id, role) " .
-                               "VALUES (':new_mentor', :project_id, :program_id, 'm')";
+                               "VALUES (:new_mentor, :project_id, :program_id, 'm')";
                         $db->query($sql, $params);
                     }
                 }


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