how to fix undefined index in PHP
<p>This is a little question, but why am i getting this error message?</p>

<pre><code>Severity: Notice

Message: Undefined index: filter

Filename: libraries/Functions.php(656) : eval()'d code

Line Number: 43
</code></pre>

<p>It says the problem lays here: </p>

<pre><code>$filter2 = $_GET['filter'];
</code></pre>

<p>I have defined my GET as filter2, i want to use filter2 to compare if it contains the word 'RealScan'</p>

<p>The problem will be fixed if i use isset(), but it will also convert the my GET to a integer, so i cant use that.</p>

<pre><code>if($filter2 == 'RealScan')
{
//something here  
}
</code></pre>
