Notice: Use of undefined constant with strstr or strpos
<p>I have a opencart that have a path similar to this</p>

<p><code>http://xyz.com//index.php?route=product/category&amp;path=59</code></p>

<p>and another path like this</p>

<p><code>/index.php?route=product/category&amp;path=59_68</code></p>

<p>I want to make a <code>IF / ELSE</code> that if the underscore (<code>_</code>) is in the path show something else hide it.</p>

<p>So here what I have for now</p>

<pre><code>&lt;?php
    //Check if you are in first categorie for left menu
    if(strstr($_GET['path'],'_',true)){
?&gt;
    &lt;div class="grid_4"&gt;
        &lt;?php echo $column_left; ?&gt;
    &lt;/div&gt;
    &lt;div class="grid_8"&gt;
&lt;?php }else{ ?&gt;
    &lt;div class="grid_12"&gt;
&lt;?php } ?&gt;
</code></pre>

<p>The thing is when the underscore is not in the path variable in the url, I get the </p>

<blockquote>
  <p>Notice: Use of undefined constant   - assumed ' ' in /home/....</p>
</blockquote>

<p>error.</p>

<p>What could be the problem here?</p>

<p>Thanks for your helps.</p>
