Allow use of checkall=1 in URI for message list pages when JavaScript is enabled...
[squirrelmail.git] / src / right_main.php
index 575b5f50d83898dc24c062612ec3096b7a50c326..ce7d77f1c035c4e2d75ca39014ba1f56c2fa7ecf 100644 (file)
@@ -67,8 +67,8 @@ if ( sqgetGlobalVar('showall', $temp, SQ_GET) ) {
     $showall = (int) $temp;
 }
 
     $showall = (int) $temp;
 }
 
-if ( sqgetGlobalVar('checkall', $temp, SQ_GET) ) {
-  $checkall = (int) $temp;
+if (!sqgetGlobalVar('checkall',$checkall,SQ_GET)) {
+    $checkall = false;
 }
 
 /* future work */
 }
 
 /* future work */
@@ -336,6 +336,7 @@ if ($aMailbox['EXISTS'] > 0) {
     $oTemplate->assign('alt_index_colors', isset($alt_index_colors) ? $alt_index_colors: false);
     $oTemplate->assign('color', $color);
     $oTemplate->assign('align', $align);
     $oTemplate->assign('alt_index_colors', isset($alt_index_colors) ? $alt_index_colors: false);
     $oTemplate->assign('color', $color);
     $oTemplate->assign('align', $align);
+    $oTemplate->assign('checkall', $checkall);
 
     $oTemplate->display('message_list.tpl');
 
 
     $oTemplate->display('message_list.tpl');