Revision 7902
Added by Aaron Marcuse-Kubitza almost 12 years ago
index.php | ||
---|---|---|
44 | 44 |
$fragment = $path->head; |
45 | 45 |
$path = $path->tail; |
46 | 46 |
} |
47 |
if ($path) $url .= "?".$path; |
|
47 |
if ($path !== "") $url .= "?".$path;
|
|
48 | 48 |
return $url."#".$fragment; |
49 | 49 |
}; |
50 | 50 |
} |
... | ... | |
55 | 55 |
{ |
56 | 56 |
$path = parse_dot_path($path); |
57 | 57 |
$subject = "schema"; |
58 |
if ($path->head) |
|
58 |
if ($path->head !== "")
|
|
59 | 59 |
{ |
60 | 60 |
$url .= "&table=".$path->head; |
61 |
if ($path->tail) |
|
61 |
if ($path->tail !== "")
|
|
62 | 62 |
{ |
63 | 63 |
$url .= "&column=".$path->tail; |
64 | 64 |
$subject = "column"; |
... | ... | |
76 | 76 |
{ |
77 | 77 |
$path = parse_dot_path($path); |
78 | 78 |
$target = "db_structure"; |
79 |
if ($path->head) |
|
79 |
if ($path->head !== "")
|
|
80 | 80 |
{ |
81 | 81 |
$url .= "&table=".$path->head; |
82 |
if ($path->tail) $url .= "&column=".$path->tail; |
|
82 |
if ($path->tail !== "") $url .= "&column=".$path->tail;
|
|
83 | 83 |
$target = "tbl_structure"; |
84 | 84 |
} |
85 | 85 |
$url .= "&target=".$target.".php"; |
... | ... | |
92 | 92 |
return function($path) use($url) |
93 | 93 |
{ |
94 | 94 |
$path = parse_dot_path($path); |
95 |
if ($path->head) $url .= "/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=".$path->head."#".$path->tail; |
|
95 |
if ($path->head !== "") $url .= "/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=".$path->head."#".$path->tail;
|
|
96 | 96 |
else $url .= "/get/index/dba_tabledescription"; |
97 | 97 |
return $url; |
98 | 98 |
}; |
Also available in: Unified diff
web/vegpath/index.php: parse_dot_path() calls: Fixed bug where need to test result components using \`!== ""\` instead of just using the value as a boolean because PHP incorrectly interprets the string "0" as false