diff --git a/appsubmit.php b/appsubmit.php
index 98540e4..199f051 100644
--- a/appsubmit.php
+++ b/appsubmit.php
@@ -114,7 +114,7 @@ else if (isset($_REQUEST['apptype']))
{
// set email field if logged in
if (loggedin())
- $email = $_SESSION[current]->lookup_email($_SESSION[current]->userid);
+ $email = $_SESSION['current']->lookup_email($_SESSION['current']->userid);
// header
apidb_header("Submit Application");
@@ -133,7 +133,7 @@ else if (isset($_REQUEST['apptype']))
echo "appdb@winehq.org
\n";
# NEW APPLICATION
- if ($_REQUEST[apptype] == 1)
+ if ($_REQUEST['apptype'] == 1)
{
echo html_frame_start("New Application Form",400,"",0);
echo "\n";
diff --git a/appview.php b/appview.php
index e9df9db..cb76183 100644
--- a/appview.php
+++ b/appview.php
@@ -26,7 +26,7 @@ function admin_menu()
global $apidb_root;
$m = new htmlmenu("Admin");
- if($_REQUEST[versionId]) {
+ if($_REQUEST['versionId']) {
$m->add("Add Note", $apidb_root."admin/addAppNote.php?appId=$appId&versionId=".$_REQUEST['versionId']);
$m->addmisc(" ");
diff --git a/include/rating.php b/include/rating.php
index a2c7b05..125a51f 100644
--- a/include/rating.php
+++ b/include/rating.php
@@ -156,7 +156,7 @@ function rating_update($vars)
return;
}
- $userId = $_SESSION[current]->userid;
+ $userId = $_SESSION['current']->userid;
$versionId = $vars["versionId"];
$score_w = $vars["score_w"];
$score_f = $vars["score_f"];