title: remove smarty -> assign variable from controller in prestashop
body: <p>I modified the default prestashop 1.5 newsletter module and made the following override of to the IdentityController </p>
  
  <pre><code>$this-&gt;context-&gt;smarty-&gt;assign('newsletter', (int)Module::getInstanceByName('modifiednewsletter')-&gt;active);
  </code></pre>
  
  <p>So the checkbox would appear to set/unset newsletter subscription via the "my personal information" account link.</p>
  
  <p>Everything works fine but with <code>ini_set("display_errors", 1);</code> i still get the following php error on the personal info page</p>
  
  <pre><code>Notice: Trying to get property of non-object in /var/www/prestashop/controllers/front/IdentityController.php on line 135 Call Stack: 0.0001 646712 1.
  </code></pre>
  
  <p>line 135 of IdentityController.php is </p>
  
  <pre><code>$this-&gt;context-&gt;smarty-&gt;assign('newsletter', (int)Module::getInstanceByName('blocknewsletter')-&gt;active);
  </code></pre>
  
  <p>When i comment out the line, the error goes away, but I really don't want to mess with the core files, can anyone tell me how to "unset" this variable through the override file?</p>