> > > > On Mon, July 17, 2006 3:14 pm, Tomas Kuliavas wrote: > >>>> Hello, > >>>> > >>>> I'm using SQM 1.5.1 und activated the plugin Select_Range. The plugin > >>>> works fine but in the user interface I always get the following > >>>> warning > >>>> for two > >>>> times (because the link "Select Range" is shown for two times): > >>>> > >>>> Nachricht: Undefined variable: message_count > >>>> FILE: > >>>> > C:\Programme\Jana2\html\squirrelmail\plugins\select_range\functions.php > >>>> LINE: 243 > >>>> > >>>> Trying to install the diff file information I found out that there > are > >>>> differences to SQM 1.5.1 so the diff installation can't be done. > >>>> > >>>> Here are the details of my server system: > >>>> Windows 2000 Workstation SP4 > >>>> Jana Server 2.4.7.1 (www.janaserver.de) as IMAP-, Mail-, Proxy and > >>>> HTTP-Server > >>>> PHP 5.1.2.2 > >>>> SQM 1.5.1 > >>>> > >>> Can anyone help me hiding these warning messages? > >> > >> find "unset( $message_count );" in plugins\select_range\functions.php > >> line > >> 230 and replace it with "$message_count = getPref($data_dir, $username, > >> 'show_num', 15 );" > >> > > Any patch for this ? Is it a bug for SM 1.5.1? > > Bug is in plugin. > > It unsets $message_count value and sets it only when some condition is > met. > > --- functions.php.orig 2005-03-13 11:11:48.000000000 +0200 > +++ functions.php 2006-07-17 14:52:43.729338944 +0300 > @@ -227,7 +227,7 @@ > } > > // figure out how many messages are on the current page > - unset( $message_count ); > + $message_count = getPref($data_dir, $username, 'show_num', 15 ); > if( isset( $PG_SHOWALL ) && $PG_SHOWALL ){ > $message_count = $numMessages; > } else if( isset( $numMessages ) && isset( $startMessage ) ){ > Thank you for helping me. Changing the code and the definition of the variable $message_count solved the problem. Stefan -- Echte DSL-Flatrate dauerhaft für 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users