TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: ZarPrime on March 28, 2009, 10:29:24 AM

Title: [bugtracker] SSI Integration issue - Undefined offset in TPSubs.php on line 184
Post by: ZarPrime on March 28, 2009, 10:29:24 AM
This is a possible bug in TPSubs.php.  A member has been trying to use ssi to
integrate his calendar onto a page outside of SMF/TP and was getting this
error.  To better understand, it might be best to take a look at this topic --->
http://www.tinyportal.net/index.php/topic,29015.msg231516.html#msg231516

Also, see this topic --> http://www.tinyportal.net/index.php/topic,29040.0.html

We were unable to help him and sent him over to SMF.  Sarge was able to
sort out the problem by changing this line in TPSubs.php ...

     if($pr[1]==1)
      $context['TPortal']['adminlist'][$pr[0]] = 1;
      

to this ...

     if (isset($pr[1]) && $pr[1]==1)
      $context['TPortal']['adminlist'][$pr[0]] = 1;

      
The SMF topic and Sarge's fix is here --->
http://www.simplemachines.org/community/index.php?topic=301477.msg1993705#msg1993705

ZarPrime
Title: Re: [bugtracker] SSI Integration issue - Undefined offset in TPSubs.php on line 184
Post by: bloc on April 16, 2009, 08:29:21 AM
The fix was applied to beta4, since its simply a check added to stop generating errors when executing the function from outside SMF.