[thor] Undefine index: projects

Serge Grondin SGrondin at csbf.qc.ca
Fri Feb 13 10:39:19 PST 2004


Hi,

If there is no projects, I got this message:

PHP Notice:  Undefined variable:  projects in
.../horde_head/thor/list.php on line 78

Here is the patch, I think, that correct this.

Index: list.php
===================================================================
RCS file: /repository/thor/list.php,v
retrieving revision 1.13
diff -u -r1.13 list.php
--- list.php    4 Feb 2004 22:36:44 -0000       1.13
+++ list.php    13 Feb 2004 18:24:28 -0000
@@ -67,7 +67,7 @@
 
 require THOR_TEMPLATES . '/common-header.inc';
 Thor::menu();
-
+$projects = array();
 if ($showTabs) { 
     $TABS->render($status);
     // Filter the projects


Thanks,

-- 
Serge Grondin
Technicien en Informatique
Commission Scolaire des Bois-Francs
Tel. bur.:   (819) 758-6453, poste 2920
e-Mail bur.: SGrondin at csbf.qc.ca


More information about the thor mailing list