Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context
<p>I am getting the above error - here is the code that it is referring to:</p>

<pre><code>function executeTransaction() {
        tNG_log::log('tNG' . $this-&gt;transactionType, 'executeTransaction', 'begin');
        if ($this-&gt;started) {
            tNG_log::log('tNG' . $this-&gt;transactionType, 'executeTransaction', 'end');
            return false;
        }
</code></pre>

<p>I am unsure how to edit the above code effectively to make the error message go away. I am aware that I can edit the php.ini file so that these errors do not show, however I would rather fix the code</p>