Undefined index after calling "require_once"
<p>I write this in a page :</p>

<pre><code>require_once("pdf/tab_activite.php");
...
foreach ($tab["activite"] as $key =&gt; $value) 
{
   ...
}
</code></pre>

<p>Inside the tab_activite.php there is this :</p>

<pre><code>...
$list = new activite($this-&gt;db);
$list-&gt;lireParNiveau($critere);
$tab["activite"] = $list-&gt;tableau ;
...
</code></pre>

<p>Then in the log there is :</p>

<pre><code>[10-Oct-2012 10:30:48] PHP Notice:  Undefined index:  activite in C:\wamp\www\mp\models\objet.class.php on line 543
[10-Oct-2012 10:30:48] PHP Warning:  Invalid argument supplied for foreach() in C:\wamp\www\mp\models\objet.class.php on line 543
</code></pre>

<p>So how to manipulate correctly the $tab["activite"] variable ?</p>
