Commit f370e1cf authored by Russ Fish's avatar Russ Fish

Quiet some PHP warnings.

parent 1813c6f6
...@@ -31,10 +31,8 @@ $optargs = OptionalPageArguments("submit", PAGEARG_STRING, ...@@ -31,10 +31,8 @@ $optargs = OptionalPageArguments("submit", PAGEARG_STRING,
"newattribute_type", PAGEARG_STRING, "newattribute_type", PAGEARG_STRING,
"newattribute_name", PAGEARG_STRING, "newattribute_name", PAGEARG_STRING,
"newattribute_value", PAGEARG_STRING); "newattribute_value", PAGEARG_STRING);
if (!isset($node_type)) { $node_type = ""; }
if (!isset($attributes)) { if (!isset($attributes)) { $attributes = array(); }
$attributes = array();
}
# This belongs elsewhere! # This belongs elsewhere!
$initial_attributes = array( $initial_attributes = array(
......
...@@ -246,10 +246,10 @@ function GENPLIST ($query_result) ...@@ -246,10 +246,10 @@ function GENPLIST ($query_result)
echo "</tr>\n"; echo "</tr>\n";
while (list($pid, $foo) = each($showby)) { while (list($pid, $foo) = each($showby)) {
if (!isset($projectrows["$pid"])) {
continue;
}
$projectrow = $projectrows["$pid"]; $projectrow = $projectrows["$pid"];
if (!isset($projectrow)) {
continue;
}
$headidx = $projectrow["head_idx"]; $headidx = $projectrow["head_idx"];
$Pname = $projectrow["name"]; $Pname = $projectrow["name"];
$approved = $projectrow["approved"]; $approved = $projectrow["approved"];
......
...@@ -122,6 +122,7 @@ echo "<br><br>\n"; ...@@ -122,6 +122,7 @@ echo "<br><br>\n";
# No ranges, just ordered. # No ranges, just ordered.
# #
function showsummary ($showby, $sortby) { function showsummary ($showby, $sortby) {
global $TBOPSPID;
switch ($showby) { switch ($showby) {
case "projects": case "projects":
$which = "pid"; $which = "pid";
......
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