title: Use of undefined constant getUser - assumed 'getUser' error
body: <p>I´m trying to protect the access to my div class="posts".</p>
  
  <p>And I just want to see if the user have permission if the function getUser exists.</p>
  
  <p>But I´m having this <strong>error</strong> and I'm not understanding  where is the problem:</p>
  
  <pre><code>Notice: Use of undefined constant getUser - assumed 'getUser' in if(function_exists(getUser))
  </code></pre>
  
  <p><strong>My code:</strong> </p>
  
  <pre><code>  if(function_exists(getUser))
          {
  
          if(!getUser($_SESSION['user']['id'], '1'))
          {
              echo 'Sorry, but you don't have permission to enter here';
          }
          else
          {
  
      ?&gt;
      &lt;!-- I show this div id he user have permission --&gt;
      &lt;div class="pages" style="display:block"&gt;
      ....
      &lt;?php
          }
      }
      //if the function does not exist
      else
      {
          header('Location: ../index2.php');
      }
      ?&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>My getUser function, is a function to see the level of the user:</p>
  
  <pre><code>function getUser($userId, $nivel=NULL){} 
  </code></pre>
  
  <p>The function is a bit extense but it will return true if the the level of user is valid and return false if its not possible so read an user with the userId.</p>