title: joomla Fatal error: Call to a member function bind() on a non-object in \components\com_reviews\controller.php on line 24
body: <p>I m receiving this error.</p>
  
  <p>I don't where should I make the changes to come over this error.   </p>
  
  <pre><code>function comment()
  {
      global $option;
      $row=&amp; JTable::getInstance('comment','Table');
      if (!$row-&gt;bind(JRequest::get('post')))
      {
          echo "&lt;script&gt;alert('".$row-&gt;getError()."');
              window.history.go(-1);
          &lt;/script&gt;\n";
          exit();
      }
      $row-&gt;comment_date=date('Y-m-d H:i:s');
      $user=&amp; JFactory::getUser();
      if ($user-&gt;_table_id)
      {
          $row-&gt;user_id=$user-&gt;_table_id;
      }
      if (!$row-&gt;store())
      {
          echo "&lt;script&gt;alert('".$row-&gt;getError()."');
              window.history.go(-1);&lt;/script&gt;\n";
              exit();
      }
      $this-&gt;setRedirect('index.php?option='.$option.'&amp;id'.$row-&gt;review_id.'&amp;view=review','Comment Added.');
  
  
  }  
  </code></pre>
  
  <p>thanks in advance
  Dave</p>