Php undefined offset error
<p>Running the following code:</p>

<pre><code>        preg_match("/^top\-sites\-csv\_(.+)\_/i", $file, $matches);
    $site_id = $matches[1];
</code></pre>

<p>And it keeps generating this notice:</p>

<pre><code>PHP Notice:  Undefined offset
</code></pre>

<p>I guess its happening when the regex does not find a match.
problem is that the script is on a cron and my error log grows huge in no time and then needs manual cleaning..</p>
