Commit 0d66abb5 authored by Leigh Stoller's avatar Leigh Stoller

Fix PHP Warnings

parent 25739c16
......@@ -102,7 +102,7 @@ $linktest_running = 0;
function SPEWCLEANUP()
{
global $pid, $unix_gid, $eid, $linktest_running;
global $pid, $unix_gid, $uid, $eid, $linktest_running;
if (connection_aborted() && $linktest_running) {
SUEXEC($uid, "$pid,$unix_gid", "weblinktest -k $pid $eid",
......
......@@ -168,8 +168,9 @@ function SPITFORM($formfields, $errors)
#
# Country needs a default for older users.
#
if (! strcmp($formfields["usr_country"], "")) {
$formfields[usr_country] = "USA";
if (!isset($formfields["usr_country"]) ||
$formfields["usr_country"] == "") {
$formfields["usr_country"] = "USA";
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment