Browse Source

Remove $settings['imapConnection']. Passing this to the template causes in intermittent segfault on PHP 4.3.11 (maybe others??). Since this variable is not used by the templates right now, we will simply remove it. Probably need to re-evaluate this later as the IMAP connection could be extremely useful to template developers.

stevetruckstuff 19 years ago
parent
commit
2cfac6f247
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/left_main.php

+ 2 - 2
src/left_main.php

@@ -191,7 +191,7 @@ $oTemplate->assign('mailboxes', $mailbox_structure);
  * globals, which are dirty, filthy things in templates. :)
  */
 $settings = array();
-$settings['imapConnection'] = $imapConnection;
+#$settings['imapConnection'] = $imapConnection;
 $settings['iconThemePath'] = $icon_theme_path;
 $settings['templateDirectory'] = $sTplDir;
 $settings['unreadNotificationEnabled'] = $unseen_notify!=1;
@@ -207,4 +207,4 @@ $oTemplate->display('left_main.tpl');
 
 sqimap_logout($imapConnection);
 $oTemplate->display('footer.tpl');
-?>
+?>