projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b38bdb4
)
Better error reporting.
author
Alain Peyrat
<aljeux@free.fr>
Mon, 18 Oct 2010 16:39:26 +0000
(16:39 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Mon, 18 Oct 2010 16:39:26 +0000
(16:39 +0000)
src/www/reporting/projectact_graph.php
patch
|
blob
|
history
diff --git
a/src/www/reporting/projectact_graph.php
b/src/www/reporting/projectact_graph.php
index 16347c0ce78bb6ab3ef8a78f41036cb293c7bdda..56ee47e291e8399ddb3f3d6474a69275bf1ec015 100644
(file)
--- a/
src/www/reporting/projectact_graph.php
+++ b/
src/www/reporting/projectact_graph.php
@@
-51,9
+51,11
@@
if ($report->isError()) {
//
// Get Project Object
//
//
// Get Project Object
//
-$g =& group_get_object($g_id);
-if (!$g || $g->isError()) {
- exit_error("Could Not Get Group");
+$g = group_get_object($g_id);
+if (!$g || !is_object($g)) {
+ exit_no_group();
+} elseif ($g->isError()) {
+ exit_error($g->getErrorMessage(),'');
}
// Create the graph. These two calls are always required
}
// Create the graph. These two calls are always required